Skip to main content



      Home
Home » Archived » BIRT » Session variables
Session variables [message #139930] Mon, 06 March 2006 15:54 Go to next message
Eclipse UserFriend
Hi. How can i retrieve session variables in a BIRT report from other
documents (webpages)? I'm interested in retrieving objects regarding their
type.
Thank you.
Re: Session variables [message #140136 is a reply to message #139930] Mon, 06 March 2006 19:32 Go to previous messageGo to next message
Eclipse UserFriend
There is a function within reportContext that is available while scripting
that can get a session variable. (This can also be done in Java)

For example. in the onPrepare of a data control

ab = reportContext.getHttpServletRequest().getAttribute('attribut eBean');
doc = ab.getReportDocumentName();
this.valueExpr = "doc";

This works with the BIRT Viewer.
In the example I used a default session var that is used within the BIRT
viewer.

If you write your own servlet you can create similar logic
using the API. (Task.setAppContext()) to make the session available to the
reports.

Jason


"Cristian" <ceol.gael@gmail.com> wrote in message
news:4264bb5d2030ba4b551679491cec5a88$1@www.eclipse.org...
> Hi. How can i retrieve session variables in a BIRT report from other
> documents (webpages)? I'm interested in retrieving objects regarding their
> type.
> Thank you.
>
Re: Session variables [message #140670 is a reply to message #140136] Tue, 07 March 2006 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Thanks, I'll try that.
Re: Session variables [message #140767 is a reply to message #140136] Tue, 07 March 2006 10:01 Go to previous message
Eclipse UserFriend
it's working. thanks alot.
cristian
Previous Topic:user-defined aggregations
Next Topic:Blanks when highlighting every other row
Goto Forum:
  


Current Time: Tue Jul 22 14:46:11 EDT 2025

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

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

Back to the top