Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT Reports in PDF Format
BIRT Reports in PDF Format [message #1403431] Wed, 23 July 2014 16:03 Go to next message
Andy Mee is currently offline Andy MeeFriend
Messages: 2
Registered: July 2014
Junior Member
Hi,

I want to take an item from a dataset (a company's name in the raw data for example), and assign this to a variable so that I can use that variable elsewhere in my BIRT Report.

This is probably really simple to do but, being relatively new to BIRT reports, I don't know HOW or WHERE to do this. Can anyone help at all?

Please be gentle in any explanations as I may struggle to follow them. Many thanks,

Andy.
Re: BIRT Reports in PDF Format [message #1407183 is a reply to message #1403431] Tue, 12 August 2014 03:40 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

In your onFetch of your dataSet, you can write a field to a variable with something like:

reportContext.setPersistentGlobalVariable("variableName",row["yourField"]);

In your report, you can recall this variable anywhere after an element that uses this dataSet with a call like:

reportContext.getPersistentGlobalVariable("variableName");

Hope this helps.


Michael

Developer Evangelist, Silanis
Re: BIRT Reports in PDF Format [message #1407427 is a reply to message #1407183] Tue, 12 August 2014 15:15 Go to previous message
Andy Mee is currently offline Andy MeeFriend
Messages: 2
Registered: July 2014
Junior Member
Brilliant - that works.

Thanks for taking the time and effort to respond, it's much appreciated Smile
Previous Topic:Facing Problem while calling BIRT report as Standalone java
Next Topic:Facing problem in Java while calling BIRT file(.rptdesign)
Goto Forum:
  


Current Time: Fri Apr 26 23:54:54 GMT 2024

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

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

Back to the top