Questions regarding use the __document report parameter and the viewer frameset option? [message #822376] |
Fri, 16 March 2012 10:29  |
Eclipse User |
|
|
|
I have a header in my report that contains links to many sub-reports.
I would like to capture the rptdocument name when each report is rendered and save it in a session variable such that the links can be altered dynamically to use the rptdocument name if it exists to avoid the overhead of re-rendering previously rendered reports when the user wants to flip between the various sub-reports.
I have hit two obstacles so far:
1) When I put the following code in the beforeFactory of my report:
myAttributeBean = reportContext.getHttpServletRequest().getAttribute('attributeBean');
reportDoc = myAttributeBean.getReportDocumentName( );
reportDoc is always null
2) If I put the same code in a dynamic text element within the report, then reportDoc is null if I run the report using the run servlet because it doesn't create the rptDocument file; so I have to use the frameset servlet. However I don't want the "features" of the frameset. So I set the following parameters:
frameset?__showtitle=false&__toolbar=false&__navigationbar=false
Which almost gives me back the look that I want, except that it still insists on carving my report into pages. I want one long html web page like I get with the run servlet but I can't seem to find and option to turn off the paging?
So to summarize the questions:
1) Why can't I put the script in the beforeFactory method?
2) How do I turn off paging in the frameset viewer?
3) Is there a better way to achieve what I am attempting to do?
[Updated on: Fri, 16 March 2012 14:02] by Moderator
|
|
|
|
|
|
Re: Can you use the __document report parameter if you aren't using the viewer frameset option? [message #824518 is a reply to message #824438] |
Mon, 19 March 2012 15:14  |
Eclipse User |
|
|
|
Mike,
Without modifying the source I do not know of an easier way. I think
the performance should not be affected that much either way.
Jason
On 3/19/2012 1:12 PM, Mike Wulkan wrote:
> Hmmm, I tried again and now it seems to be working. So to make this
> technique work I would have to add an outer container that contained
> everything in my report, otherwise I'll only see what's in the container
> labelled with the specified bookmark, right? Too bad you can't assign a
> bookmark to the "body" element of a rptDesign. Now I'll have to modify
> all my rptDesign documents to enclose the whole body in a grid.
> Do you have a feel for the performance implications of rendering the
> html using:
>
> frameset?__isreportlet=true&__bookmark=ReportBody&__showtitle=false&__toolbar=false&__navigationbar=false
>
>
> versus
>
> run?
|
|
|
Powered by
FUDForum. Page generated in 0.05612 seconds