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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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