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!

posta 2 anni fa317 visualizzazioni
1 Risposta
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
ESPERTO
iwasa
con risposta 2 anni fa
profile picture
ESPERTO
verificato 14 giorni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande