We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Passing Parameters in Embed Code

Thread ID:

Created:

Updated:

Platform:

Replies:

142519 Feb 7,2019 01:09 PM UTC Feb 8,2019 09:24 AM UTC Dashboard Platform 2
loading
Tags: Dashboard Designer
Gio
Asked On February 7, 2019 01:09 PM UTC

Hi, 

Is there a way of passing parameters through an Embed Code so I can filter a report based on that parameter?

I have a standard dashboard report which covers several teams of people.

While I can use the embed code to display this report on our intranet, it currently is not filtered so each team manager only sees their team. 

We store the embed code in our database, so we could edit the embed code via Javascript and add the parameters to the embed code from here. 

If not and we have to use the Dashboard SDK to pass parameters and filters through to the report, can you tell me how I would install this as a webservice on Azure please?

I've checked the documentation for installing the SDK, but it only seems to refer to "local" installations.

Thanks,
Giovanni

Renuka N [Syncfusion]
Replied On February 8, 2019 05:32 AM UTC

Hi Giovani,   

Thanks for contacting Syncfusion support.   

Yes. It is possible to pass parameters through an Embed Code. For this, you need to append the filter query [fieldname=value] at the end of the Dashboard URL of your Embed Code.   

Please find the sample Embed Code below,   

<iframe id='frame-div' width='100%' height='100%' frameborder='0' src='https://dashboardserver.syncfusion.com/dashboards/embed/Sports/FIFA%20World%20Cup%202014%20-%20Brazil?hascomments=true&hasviews=true&hassso=false&country=chile'></iframe>  

While rendering the Embed dashboard, the filter “Country = Chile” will be applied. You can append any number of filters with ‘&’ at the end of the embed code URL.   

Note: Currently we do not have support to host Dashboard SDK as a Web Service in Azure.  

Regards, 
Renuka N. 


Gio
Replied On February 8, 2019 09:24 AM UTC

Hi Renuka, 

Many thanks for coming back to me so quickly, that's really useful (and a helpful example). 

Thanks, 
Giovanni

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;