Quicksight embedding SDK - get dashboard ID

0

We have a web app in which we embedded both the Quicksight console (for building) and dashboards (for visualization). Once a user build a dashboard in the embedded console, he needs to copy the dashboardID to a configuration in our web app and we used that id to be displayed in the dashboards embedding (visualization part). Is there any way of obtaining the dashboard ID from the embedded console iframe? I tried many ways, including viewing the frame source but this only works manually (not programatically via Javascript) due browsers security reasons.

Thanks!

已提问 2 年前317 查看次数
1 回答
1

Hi, @cbevilaqua

You can't get directly from an iframe due to JavaScript's cross-origin security restrictions.

You'll have to take another approach to get the dashboard id.

For example, when a user creates a dashboard, the AWS API should create a dashboard creation history.
For example, polling or picking this up with EventBridge and notifying the client.

profile picture
专家
iwasa
已回答 2 年前
profile picture
专家
已审核 14 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则