Hello,
I would like to perform the following action:
Export a package with a SAS Viya VA report that has your tables, your objects, your data, etc. Which then I would like to embed it in an html page, without the need to connect to the server.
Could this be possible?
Thanks!!
best regards.
This is possible in Viya 4 (Visual Analytics version 2022.x) and details can be found here:
https://go.documentation.sas.com/doc/en/vacdc/v_017/vareports/p0log1ce8qcj4cn15k0oby258pdb.htm
This feature does exactly what you are looking for: exports the report + all the data used in the report and generates an index.html automatically for you that uses the Visual Analytics SDK to render the contents. You would just need to extract the package it creates somewhere on your web server and should be good to go.
For Viya 3.5, you can use the Visual Analytics SDK as well but there is no supported method of bundling the data with it. It will have to make live calls to the server to retrieve data. One benefit to this approach though is you can still embed it within a webpage and bypass having to load the Visual Analytics web application as part of rendering the report. More information on that can be found here:
https://developer.sas.com/guides/visual-analytics-sdk.html
And if you or anyone happens to be using SAS 9.4 and Visual Analytics 7.5, unfortunately there is no SDK option here. You can still embed reports using an iframe though.
Hopefully that helps!
This is possible in Viya 4 (Visual Analytics version 2022.x) and details can be found here:
https://go.documentation.sas.com/doc/en/vacdc/v_017/vareports/p0log1ce8qcj4cn15k0oby258pdb.htm
This feature does exactly what you are looking for: exports the report + all the data used in the report and generates an index.html automatically for you that uses the Visual Analytics SDK to render the contents. You would just need to extract the package it creates somewhere on your web server and should be good to go.
For Viya 3.5, you can use the Visual Analytics SDK as well but there is no supported method of bundling the data with it. It will have to make live calls to the server to retrieve data. One benefit to this approach though is you can still embed it within a webpage and bypass having to load the Visual Analytics web application as part of rendering the report. More information on that can be found here:
https://developer.sas.com/guides/visual-analytics-sdk.html
And if you or anyone happens to be using SAS 9.4 and Visual Analytics 7.5, unfortunately there is no SDK option here. You can still embed reports using an iframe though.
Hopefully that helps!
Exporting Report Packages is a topic briefly discussed in the SAS Viya Release Highlights - September 2021 - https://www.youtube.com/watch?v=x3dspe-fQNQ&list=PLVV6eZFA22Qy3Phh79SwcT-4tB84vnQ48&index=16&t=284s
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.