BookmarkSubscribeRSS Feed
rifcha
Fluorite | Level 6

Hello,

we would like to use the SDK to embed our report in a web page by including a parameter. we followed the following documentation : 

https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4309-2020.pdf (part : report parameter)

But we couldn't implement the filter, it doesnt work
below the code to use.

<html>
<head>
<style>
html {
background-color: #f0f0f0;
}
sas-report {
width: 75%;
height: 75%;
--sas-report-padding: 10px;
display: block;
}
</style>
<script async src="https://unpkg.com/@sassoftware/va-report-components@1.2.0/dist/umd/va-report-components.js"></script>
</head>
<body>
<h1>Ceci est une page HTML !</h1>
<sas-report id="myReport" url="XXXXXXXXXXXXXX" reportUri="/reports/reports/a749e9c6-fbfc-4af5-b3d7-d0e788b75b7d" authenticationType="credentials"></sas-report>
</body>
<script>
window.addEventListener('vaReportComponents.loaded', function() {
const report = document.getElementById('myReport');
report.parameters = {
originParm: 'USA'
};
});
// Add the report to the end of the body
</script>
</html>

 

thank you in advance for your help

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 662 views
  • 0 likes
  • 1 in conversation