|
Re: Set URL parameter by default [message #147589 is a reply to message #141993] |
Thu, 23 March 2006 21:20 |
Eclipse User |
|
|
|
Originally posted by: brandon.shannon.s1.com
I've extended the ViewerServlet in my app to add more params to the request
object so that they get passed to the report, but are not on the URL. For
example, the first line of the doPost method becomes something like:
request.getParameterMap().put("paramCustomerID", new String[]{"5"});
Now, paramCustomerID always gets passed to the report, but isn't accessible
to the user.
Brandon
"Mr. Burns" <Mr._Burns@web.de> wrote in message
news:dup7l9$ehc$1@utils.eclipse.org...
> Hello,
>
> I want my report always be started with the URL parameter __overwrite=true
> But I want to set this param not using the URL but inside my report
> itself, so I don't want to enlarge my URL everytime by this parameter.
>
> Is there a way to set an URL param out of my report directly by default?
> So even this param does not occur in the calling URL it would be
> available?
>
> To make it more clear:
>
> Normally one calls a report using an URL similar to this:
>
> /birt-server:8080/birt-viewer/run?__format=html&__report =MyReport.rptdesign&__overwrite=true
>
> Now I want to call the report by:
>
> /birt-server:8080/birt-viewer/run?__format=html&__report =MyReport.rptdesign
>
> and STILL the param __overwrite should be true.
>
> Is there a way to set this parameter within the report directly instead of
> everytime adding it to the URL?
>
> Thanks!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02804 seconds