I am working in outsystems reactive web application, I need to preview a 3d file using autodesk viewer. I need to implement html in outsystems which is attached in this discussion. I have no idea how to add this complete html in outsystems. Please provide me OML file if possible. it would be great help.I had also tried INJECTHTML, When i put my code in that HTML, It shows error.Thanks in Advance.
Hello Ajay,
In expression put your HTML code and set escape content yes
Regards
Shradha
Hi Ajay,
you can follow these post,
https://www.outsystems.com/forums/discussion/53973/expression-escape-content-in-reactive-web/
https://www.outsystems.com/forums/discussion/71703/we-are-using-content-with-html-tags-which-is-visible-on-screen/
Thanks,
Narendra Tiwari
Hello @Shradha RawlaniWhen i tried that it shows error
Hello @Ajay Saminathan
Try this below oml file
I hope this helps
Thanks
hello @Rupesh PatilI tried but it shows the errorCan you please try with the code attached in this discussion and send me the update OML. Thanks in advance for your help RegardsAjay
I have added updated oml file please check and let me know
I had given the correct URN and Access token but the 3d model is not getting loaded in the viewer. whereas when i copy and paste the same code in the online html compiler, it works fine, I have no idea why it is not working. Can you please help me in solving this.
Hi AJAY,
You are using right widget-InjectHTML to show HTML but the problem is that your HTML has double qoutes "" if you are using html in expression or Inject html make sure to convert double qoutes to single. for example autodesk url is someting like this in your html- "autodesk url" now replace double qoutes in single like this- 'autodesk url'.
do the same activity for others content as well if they have double qoutes.
-Arun
i have done that, still it is not working, i had also attached that single quoted one with this reply, can you please try in our injecthtml sample oap and let me know whether the viewer loads first, Please share me oml if it is working fine. it would be a great help.Thanks in AdvanceAjay
@Ajay Saminathan ,
when you have a non-OutSystems example of some code, making that work in OutSystems will require you to study how things are done in OutSystems, understanding how they are done in the non-OutSystems example, and then deciding how you will transfer that.
Just trying to paste or inject an ENTIRE HTML PAGE in some way is probably not going to lead to success, and in that case, why use OutSystems at all.
just a few pointers :
Dorine
Thank you so much @Dorine Boudry . I will try
Please refer to this article on how to integrate the viewer in OutSystems. This is a Traditional Application but you should be able to integrate in Reactive Application. Hope this helps.
btw what @Dorine Boudry made a very valid point, and it applies to many of the questions asked here in the forum.