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