BookmarkSubscribeRSS Feed

We have been generating reports in VA (6.3) and for some of those reports we simply would like to embed them in an iframe so our other applications can display them in various contexts. Would be even better if sections of the reports could be pulled separately.

Is there a way SAS can implement this?

 

Note: Previous version 6.2 seems to be able to do that. Rendering in VA must have changed. From users perspective this seems like a feature taken away with 6.3.

6 Comments
DavidHenderson
SAS Employee

Embedding the VA report viewer in an IFRAME is supported in 6.3 (and now 6.4).  Here's how to accomplich it:

To add an instance of the viewer, use this URL as the base:

http://.../SASVisualAnalyticsViewer/VisualAnalyticsViewer.jsp?reportViewOnly=true

Login without banner:

http://.../SASVisualAnalyticsViewer/VisualAnalyticsViewer.jsp?reportViewOnly=true

If guest access has been enabled and the report is available to the guest account, use this URL:

http://.../SASVisualAnalyticsViewer/guest.jsp

To disable the banner on the guest account is a bit different:

http://.../SASVisualAnalyticsViewer/VisualAnalyticsViewer_guest.jsp

To specify which report to display, use both of these options (sample values provided):

reportName=2014YTDSales

reportPath=/Shared+Reports/

There are a few more options that enable/disable portions of the UI:

propertiesEnabled=true | false

commentsEnabled=true | false

reportViewOnly=true    - Hides all of the menus.

appSwitcherDisabled=true   - Disables the application switcher (appears at the top left)

balraj
Quartz | Level 8

Hi @DavidHenderson,

 

I'm trying the same approach you've suggested, but the page keeps on loading and not showing Report. 

Any guidance to resolve it?

Here is my HTML code

<html>
	<iframe src="http://sasva/SASVisualAnalytics/report?location=%2Fmicro%2FReports%2FBuyer%20Top%20Product&type=Report.BI&section=vi1" width="100%" height="100%"></iframe>
</html>
Expengu
SAS Employee

Try this code:

 

<html>
<head><title>Buyer Top Product without SAS banner</title></head>
<body>

<iframe src="http://sasva/SASVisualAnalyticsViewer/VisualAnalyticsViewer.jsp?appSwitcherDisabled=true&reportViewOnly=true&reportPath=/micro/Reports&reportName=Buyer+Top+Product" style="border: 0; position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%">
</iframe>

</body>
</html>
albertmore
Calcite | Level 5

I am also curious if anyone knows about a way to extract sections/tables/key data from the reports instead of having to load the whole report. If so, it would be possible to create a slick dashboard for all reports.

 

I have also used iframes to show SAS reports, but the pages became very (20-30 seconds waiting time) slow. 

AnnaBrown
Community Manager
Status changed to: Suggestion Implemented

This has been implemented. For example, the blog post, Visualizing international football data, uses an iframe to display the report.

 

Per your request, @albertmore, in SAS Visual Analytics 8.2, you can use an API to fetch a dynamic image of a report into a web page.

ashishj816
Quartz | Level 8

can we use the same thing for SAS Viya reports as well?

Please give some examples if yes.