Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to use some variable in Report Parameter input before starting report?
How to use some variable in Report Parameter input before starting report? [message #765014] Tue, 13 December 2011 09:02 Go to next message
mkrivic Mising name is currently offline mkrivic Mising name
Messages: 32
Registered: May 2010
Member
Hi,

Is there possible to get some variable from BIRT dataset, and then use it as default value in Report Parameters input on starting report?
For example:
On somehow, I must get current user before starting report, and based on the user name, I must populate another parameter list box with method getSelectionParameterList.
If there is a method about getting user details in BIRT, it would be nice.

Regards,

[Updated on: Tue, 13 December 2011 09:03]

Report message to a moderator

Re: How to use some variable in Report Parameter input before starting report? [message #765253 is a reply to message #765014] Tue, 13 December 2011 17:43 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Sure you should be able to retrieve session variables like:
reportContext.getHttpServletRequest().getSession().getAttribute(..);

As long as you have the user name in a session/request variable.

Jason

On 12/13/2011 4:02 AM, mkrivic wrote:
> Hi,
>
> Is there possible to get some variable from BIRT dataset, and then use
> it as default value in Report Parameters input on starting report?
> For example:
> On somehow, I must get current user before starting report, and based on
> the user name, I must populate another parameter list box with method
> getSelectionParameterList.
> If there is a method about getting user details in BIRT, it would be nice.
>
> Regards,
Previous Topic:Output issue with Flat file
Next Topic:Problem with date params
Goto Forum:
  


Current Time: Fri Oct 24 08:04:51 GMT 2014

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

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