Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
how to return the computed value into the table
Rain
Hi, im new with birt..and im still exploring..and i really really need some help with this..
I am trying to compute a value named duration from the dataSet using the two columns dateToday and lastUpdate. Ive done the computation using the Event Handler - LabelEventAdapter, since I still need to import the Util class which will handle the computation of the two columns.
I have returned the result (computed value - duration) like this:
label.setText(duration);
My problem is..I need to get/call the computed value duration from the table..but since i used LabelEventAdapter, I cant call the resulted value..The table can only access the values from column binding and aggregation..
when i tried to use the dataItemEventAdapter..I cant pass/return the result of the computed value into the table.
Dont really know what to do..can someone help me? which event handler should i use?
Thanks..
Find more posts tagged with
Comments
Virgil Dodson
Hi Rain,
I'm not sure I totally understand. First of all, can you just create a computed column inside your data set? If so, then it will be available within your table and data element.
Otherwise, if you must do this with scripting, you can pass around variables by adding them like below
reportContext.setPersistentGlobalVariable("name",value);