Traditional web-based reporting with SAS BI tools

Iframing multiple parts of a WRS report

Reply
Contributor
Posts: 24

Iframing multiple parts of a WRS report

 

I am trying to Iframe indiviual graphs from different reports on one html page here is an example below with 2 divs each having an iframe

 

 

 

<div id="content">
 <div style="border: 2px solid #D5CC5A; overflow: hidden; margin: 15px auto; max-width: 850px;" class=DashBoard>
  <iframe scrolling="no" src="https://uviewaccp.usask.ca/SASWebReportStudio/logonAndRender.do?&_sasapp=SAS+Web+Report+Studio&rsRID..." style="border: 0px none; margin-left: -217px; height:700px; margin-top: -200px; width: 1500px;"  sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
 </div>
</div>

<div id="content">
 <div style="border: 2px solid #D5CC5A; overflow: hidden; margin: 15px auto; max-width: 850px;" class=DashBoard>
  <iframe scrolling="no" src="https://uviewaccp.usask.ca/SASWebReportStudio/logonAndRender.do?&_sasapp=SAS+Web+Report+Studio&rsRID..." style="border: 0px none; margin-left: -217px; height:700px; margin-top: -200px; width: 1500px;"  sandbox></iframe>
 </div>
</div>

 

 

this works fine if ther is only 1 div / iframe on the page , however when I try to put 2 or more on the page i get

 

the following error message:

 

 

 


Missing report element
Close
An error occurred in processing the report element. Refresh the page to try again. Contact your administrator if this problem persists.



Hide details Close



Error messages:
An error occurred in processing the report element. Refresh the page to try again. Contact your administrator if this problem persists.
[a14758604816350.2650238958580995_0_0] Error Accessing the Report (Could not retrieve data)

Root Cause: java.lang.NullPointerException
at com.sas.report.render.optimizer.models.ChildQueryBuilder.createQuery(ChildQueryBuilder.java:537)
at com.sas.report.render.optimizer.SectionOptimizer.retrieveChildQuery(SectionOptimizer.java:332)
at com.sas.report.render.optimizer.SectionOptimizer.getChildQuery(SectionOptimizer.java:391)
at com.sas.report.render.optimizer.Optimizer.getChildQuery(Optimizer.java:143)
at com.sas.report.render.optimizer.Optimizer.getChildQuery(Optimizer.java:134)
at com.sas.report.render.models.navigation.PageNavigator.optimizeQuery(PageNavigator.java:386)
at com.sas.report.render.models.navigation.PageNavigator.retrieveData(PageNavigator.java:135)
at com.sas.report.render.models.navigation.PageNavigator.retrieveData(PageNavigator.java:190)
at com.sas.apps.citation.model.report.SectionAbstraction$ParentQueryTask.run(SectionAbstraction.java:313)
at com.sas.apps.citation.util.progress.AsyncCancellableHelper$MyRunnable.run(AsyncCancellableHelper.java:585)
at com.sas.apps.citation.util.thread.WorkerThread.doCurrentWorkNow(WorkerThread.java:245)
at com.sas.apps.citation.util.thread.WorkerThread.run(WorkerThread.java:331)
Which Caused: com.sas.apps.citation.webreport.RendererException: Error Accessing the Report (Could not retrieve data) [ java.lang.NullPointerException ]
at com.sas.apps.citation.model.report.ReportNavigationException.makeRendererException(ReportNavigationException.java:88)
at com.sas.apps.citation.model.report.RenderedReportModel.getTOC(RenderedReportModel.java:669)
at com.sas.apps.citation.model.report.DataProvider.getData(DataProvider.java:406)
at com.sas.apps.citation.model.report.DataProvider.provideNonBatchData(DataProvider.java:168)
at com.sas.apps.citation.model.report.ContentProvider$ViewElementProviderTask.run(ContentProvider.java:871)
at com.sas.apps.citation.util.progress.AsyncCancellableHelper$MyRunnable.run(AsyncCancellableHelper.java:585)
at com.sas.apps.citation.util.thread.WorkerThread.doCurrentWorkNow(WorkerThread.java:245)
at com.sas.apps.citation.util.thread.WorkerThread.run(WorkerThread.java:331)

 

 

 

 

any Idea why I cannot display 2 SAS wrs iframes on the same page?

Ask a Question
Discussion stats
  • 0 replies
  • 192 views
  • 0 likes
  • 1 in conversation