Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Set URL parameter by default
Set URL parameter by default [message #141993] Thu, 09 March 2006 12:38 Go to next message
mr. burns is currently offline mr. burnsFriend
Messages: 402
Registered: July 2009
Senior Member
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!
Re: Set URL parameter by default [message #147589 is a reply to message #141993] Thu, 23 March 2006 21:20 Go to previous message
Eclipse UserFriend
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!
>
>
Previous Topic:Unable to view/download PDF report
Next Topic:Null Dates causing problems
Goto Forum:
  


Current Time: Thu Apr 25 01:51:14 GMT 2024

Powered by FUDForum. Page generated in 0.02804 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top