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

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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