2

How to Embed incorta in a webpage using iframe tag

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • 1.   Add the following to the JAVA_OPTS variable in the service start script

    -Dincorta.xframe.option=all

    For incorta v3:

    The start script is named start.sh and it exists in the following path

    <Incorta_Installation>/start.sh

    For incorta v4:

    The start script is named startService.sh and exists in the following path

    <Incorta_Installation>/IncortaNode/startService.sh

    Example:

     

     

    2.   Restart the service

    For incorta v3: run stop.sh and then run start.sh.

    For incorta v4: Use the CMC to restart the Analytics Service

     

    3.   Add an iFrame to the HTML page you wish to embed the incorta dashboard. 

    The iframe should be in this format

    <iframe src="http://<HOST>:<PORT>/incorta/#/dashboard/<DASHBOARD_ID>" style="height:100vh;width:100%" ></iframe>

    You can get the DASHBOARD_ID from the URL as

    http://localhost:8080/incorta/#/dashboard/a36b1474-060f-423d-987e-c164972ea5e4

    Example:

     

    Note: once the embedded dashboard loads you will need to login. If using incorta authentication, it is recommended to create a user with view only permissions specific to this dashboard.

    Like
  • Thanks Motaz for the detailed explanation on iframe. We created an iframe, but facing following issues

    1. When we open the iframe and login in it is taking to the folder rather directly to the dashboard

    2. When it opens the dashboard, we observe that we can navigate to anywhere in incorta tenant rather restricting to display only the dashboard with the data. Can you help us provide references or examples of how we can restrict the iframe to display only the dashboard with content and not go anywhere else.

    Like
  • Hi,

    In the iframe URL we would like to pass a parameter (like site id =11122) to Incorta  so that it filters data on the Incorta report. 

    Caller is a digital hub application and it has to pass the login user site id to Incorta to filter data.

    How do I do it in the Iframe URL calling ?

    http://localhost:8080/incorta/#/dashboard/a36b1474-060f-423d-987e-c164972ea5e4

     

    Thanks 

    Venkat Valluri   

    Like
Like2 Follow
  • 2 Likes
  • 1 mth agoLast active
  • 3Replies
  • 303Views
  • 5 Following