Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to use some variable in Report Parameter input before starting report?
https://www.eclipse.org/forums/index.php/mv/msg/265923/765014/#msg_765014
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,]]>mkrivic Mising name2011-12-13T09:02:49-00:00Re: How to use some variable in Report Parameter input before starting report?
https://www.eclipse.org/forums/index.php/mv/msg/265923/765253/#msg_765253
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,]]>Jason Weathersby2011-12-13T17:43:57-00:00