131
Views
12
Comments
Custom HTML

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.

htmlcode.txt
2024-07-16 17-36-51
Shradha Rawlani

Hello Ajay,

In expression put your HTML code and set escape content yes

Regards

Shradha

UserImage.jpg
Ajay Saminathan

Hello @Shradha Rawlani
When i tried that it shows error



2025-07-28 06-45-20
Rupesh Patil

Hello @Ajay Saminathan 

Try this below oml file

I hope this helps

Thanks

CustomHTML.oml
UserImage.jpg
Ajay Saminathan

hello @Rupesh Patil
I tried but it shows the error


Can you please try with the code attached in this discussion and send me the update OML. Thanks in advance for your help
 
Regards
Ajay

2025-07-28 06-45-20
Rupesh Patil

Hello @Ajay Saminathan 

I have added updated oml file please check and let me know

Thanks

CustomHTML.oml
UserImage.jpg
Ajay Saminathan

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.

2025-02-10 17-24-13
Arun Rajput

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

UserImage.jpg
Ajay Saminathan

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 Advance
Ajay

single quoted.txt
2021-09-06 15-09-53
Dorine Boudry
 
MVP

@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 :

  • script   ==>>  either script or javascript node or a combination of both
  • external script ==>> to make it easy, download and add as script in OS
  • div        ==>> container
  • div id    ==>> give container a name, and then use ContainerName.Id

Dorine

UserImage.jpg
Ajay Saminathan

Thank you so much @Dorine Boudry . I will try

2019-01-07 16-04-16
Siya
 
MVP

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.