Skip to main content



      Home
Home » Archived » 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 04:02 Go to next message
Eclipse UserFriend
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 04:03] by 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 12:43 Go to previous message
Eclipse UserFriend
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:Translating from Reorting Services to BIRT
Goto Forum:
  


Current Time: Tue Jul 22 18:16:18 EDT 2025

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

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

Back to the top