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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 882 views
  • 0 likes
  • 1 in conversation