Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Unable to embed Oracle Anaytics dashboard on public website

Received Response
507
Views
18
Comments
2»

Answers

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 5 - Community Champion

    Here's an article that talks about changing the timeout using curl command - https://medium.com/@insight2action/oracle-analytics-cloud-embedding-changing-the-idcs-token-timeout-1da9323e1b94

    Another way would be directly accessing OAC application from IDCS and increasing the timeout (refer to the screenshot in attached image). You will need to have IDCS administrator role for this step. Please note that the token timeout increase step should be done for your OAC instance application, not the confidential application you created.

  • Ankan Chanda
    Ankan Chanda Rank 4 - Community Specialist

    We followed your procedure, generated the token using analytics instance which resolved our CORS issue but still unable to fetch the canvas from OAC and its displaying no errors while inspecting the page. Its showing the OAC page getting loaded but unable to fetch the graph.

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 5 - Community Champion

    Hi Ankan,

    Please allow the permissions to your safe domain as displayed in the attached image.

    If you cannot see the graphs after this, please change the width and height until you see your canvas. I usually keep width: 100%; and height: as per the canvas' height.

  • Ankan Chanda
    Ankan Chanda Rank 4 - Community Specialist

    Hi Neeti,

    Everything is working fine related to the connectivity but not able ti understand the height and width of the canvas , as we have tried loading the width to 100% as per your suggestion but unable to capture the height of the canvas from OAC . Is that the reason we aren't able to fetch the graph?

    Please have a look at the screenshot.

    error.PNG

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 5 - Community Champion

    You don't necessarily have to have the exact width and height as that of the canvas. It's just that sometimes the values do block the embedded canvas from being displayed and changing the width and height usually resolves the issue for me. Try with generic height value such as 550px. Also, try removing the position: absolute from div.

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 5 - Community Champion

    You don't necessarily have to have the exact width and height as that of the canvas. It's just that sometimes the values do block the embedded canvas from being displayed and changing the width and height usually resolves the issue for me. Try with generic height value such as 550px. Also, try removing the position: absolute from div.

  • Ankan Chanda
    Ankan Chanda Rank 4 - Community Specialist

    We have successfully embedded the graph. Thank you so much for your prompt responses with exact solutions. Will require help in the future. Hope to be in touch with you for further queries. If you don't mind can you share your mail id so that we could have a smooth interaction in future.

    You can have a look at the attached screenshot of the embedded graph. 

    embedded_oac_graph_on_webpage.PNG

  • Neeti Choksi-Oracle
    Neeti Choksi-Oracle Rank 5 - Community Champion

    Glad I could help! :)

    Feel free to connect with me on LinkedIn -  https://www.linkedin.com/in/neeti-choksi-081308114