How to generate pdf reports from embedded dashboard?

Hi all,

I have a QS dashboard which we embed in our application. While it’s possible to generate pdf’s while inside the QS platform, it seems that it’s not possible to do it from the embedded dashboard. Is there a reason for this? Can I do something to enable this?


1 Like

Hello Fotis,

If i am not mistaken, when it is embedding, there is option to enable the feature in embedding SDK : ‘export’ under toolbarOptions, the default is disabled, so you specifically have to enabled this option when you embed the dashboard.

image

Hope this helps.

Cheers,
Deep

1 Like

Hi @Deep

We use Java to embed the dashboard. With code below:

			GenerateEmbedUrlForRegisteredUserRequest request = GenerateEmbedUrlForRegisteredUserRequest.builder()
					.awsAccountId(...)
					.sessionLifetimeInMinutes(QuickSightConfiguration.EMBEDDED_URL_SESSION_LIFETIME_MINUTES)
					.userArn(...).experienceConfiguration(RegisteredUserEmbeddingExperienceConfiguration
							.builder().dashboard(RegisteredUserDashboardEmbeddingConfiguration.builder().initialDashboardId(dashboardId).build()).build())
					.build();

Do you perhaps have a solution for this?

1 Like

Hello Fotis,

I am afraid, Perhaps the only way is to use QS java script SDK- GitHub - awslabs/amazon-quicksight-embedding-sdk: A SDK to help users embed QuickSight dashboards on other pages.

May be some other members have some idea.

Cheers,
Deep

1 Like

@Fotis,

I would recommend looking at the embedding flow to get an understanding of how it works https://youtu.be/lo4cUa3IwPQ?t=1387.

1/ GenerateEmbedUrlForRegisteredUserRequest : This will return the embedding url.
2/ Using the embedding Javascript SDK you would embed the url into your application. As @Deep said, you control the export using the embedding SDK.

Kind regards,
Koushik

1 Like