Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Set Aggregation value to a Global Variable(Set Aggregation value to a Global Variable get null as result)
Set Aggregation value to a Global Variable [message #1809094] Mon, 08 July 2019 21:41
Daniel Restrepo is currently offline Daniel RestrepoFriend
Messages: 3
Registered: July 2019
Junior Member
Hi,
Im trying to set a global variable with the result of a aggregation (Concatenation).
I tried in 2 ways:
Firsts by a computed column (I see the values in the preview and they are ok)
OnFetch:
reportContext.setPersistentGlobalVariable("Channel", dataSetRow["AggChnl"]);
Later in the report
this.text = "The channels are:" + reportContext.getGlobalVariable('Channel') ;
Result in the report: "The channels are:null"

Second way: Create the aggregation in the table:
OnCreate
reportContext.setPersistentGlobalVariable("Channel2", this.getValue());
Again in the report "The channels are:null"


Could you help me please?

Best regards,
Daniel R
Previous Topic:Query in Cassandra Data Set
Next Topic:How to use URL parameters in SQL query?
Goto Forum:
  


Current Time: Sat Apr 27 02:52:27 GMT 2024

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

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

Back to the top