Hello Team,
Currently we are implementing Tableau integration.We are embedding a view from Tableau in outsystems on screen using JavaScript, which as per the html shows this view inside an iframe.We now need to generate an image of this iframe container to store it in our db.I have tried HTML2Image forge component, but it is giving blank container image and not the iframe image.Can please suggest what else i can try?Is it not possible to convert iframe to image ?Thanks in advance
Regards,Anagha
Hello Siya,
Thank you for taking out time and replying.I tried the above approach, but its throwing error saying Cannot read properties of undefined (reading 'document')I have referred html2canvas.js script in the screen.Thanks,Anagha
Attached a reference implementation that works for me. Do change the source for iframe to any application hosted in your environment and test.
Thanks a lot for this OML Siya.I was able to make it work with using the application in our env.However, i am still getting the error when i am trying with the link we have created through tableau api embedding. Below is the html snippet of the code with tableau link inside an iframe. Attaching it since i see the structure of the html different with this tableau link and the working file as its application inside our outsystems env. I think the JS code would be different for such structure?
Appreciate your help.Thanks a lotRegards,Anagha
btw is the tableau report is getting rendered on the screen ? You are seeing this error when you click on the Capture ?
yes the report is loading correctly.The error is coming on the capture button click.
Could you try using the URL of an existing Outsystems application from your environment instead of the Tableau URL? Wanted to confirm this is indeed an issue with tableau.
Hey,Yes as i mentioned earlier this is working when i try with any screen within the environment, but is not working with the tableau view.Thanks,Anagha
Looks like this is an open issue. I could find a similar issue in Tableau forum. https://community.tableau.com/s/question/0D54T00000C695YSAR/snapshot-embeded-dashboard-view
Would it be possible to post in the Tableau forums or reach out Tableau support for a resolution ?