| <body style="width: 100%;height: 100%"> <script type="text/javascript"> $(function (e) { var url ="https://dashboardsdk.syncfusion.com/DashboardService/DashboardService.svc"; // Replace with your Dashboard Service link var report = "https://dashboardsdkdemo.syncfusion.com/Dashboards/Northwind%20Product%20Sales%20Analysis.sydx"; //Replace with your Dashboard File path $("#dashboard").ejDashboardViewer({ serviceUrl: url, dashboardPath:report, beforeLayoutRender:"beforeLayoutRender" }); }); /* Get the Parameter(s) information before dashboard layout rendered*/ function beforeLayoutRender(args){ //Args contain the dashboard parameter(s) information of the dashboard (SYDX) file which you passed to the Viewer. var dashboardParameter = args.dashboardParameters; for(var i = 0; i < dashboardParameter.data.length; i++){ if(dashboardParameter.data[i].parameterName === "Parameter1"){ //Where Parameter1 is the name of the Parameter in SYDX file. dashboardParameter.data[i].value = "WILMK"; //Value of the Parameter1 } } } </script> <div id="dashboard" style="width: 100%; height: 100%" ></div> </body> |