Questions regarding use the __document report parameter and the viewer frameset option? [message #822376] |
Fri, 16 March 2012 14:29 |
Mike Wulkan Messages: 147 Registered: July 2009 |
Senior Member |
|
|
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 18:02] Report message to a moderator
|
|
|
Re: Can you use the __document report parameter if you aren't using the viewer frameset option? [message #824400 is a reply to message #822376] |
Mon, 19 March 2012 16:17 |
|
Mike
If you put a bookmark on the outer container, say like a table with a
bookmark of "mytable", you can add the following url parameters to turn
off pagination:
&__isreportlet=true&__bookmark=mytable
Have you tried the attribute script in the beforeRender? I do not think
the rpt document name is set before the before factory event.
Jason
On 3/16/2012 10:29 AM, Mike Wulkan wrote:
> 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?
>
>
>
|
|
|
|
|
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 19:14 |
|
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.03100 seconds