How to use some variable in Report Parameter input before starting report? [message #765014] |
Tue, 13 December 2011 04:02  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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,
|
|
|
Powered by
FUDForum. Page generated in 0.23522 seconds