BIRT Variable - How to create and use?
Asked Answered
M

1

5

I need to create a global report variable to get a variable of my first table, then use it in my last table to do a calculation.

I'm new with BIRT and don't found a guide to do it.

Someone can explain me how I can do it ?

Meretricious answered 4/11, 2013 at 10:24 Comment(0)
D
12

We initialize a global report variable in "Variables" section of the outline view:

Global variable

Then we can set and get its value from any place of the report:

myvalue=vars["myGlobalVariable"];

vars["myGlobalVariable"]=myvalue;

Notice global variables we declare like this are also available in the expression builder, which is very convenient.

Duckett answered 4/11, 2013 at 11:2 Comment(1)
Is it possible to declare a list variable? Or just int and strings?Strait

© 2022 - 2024 — McMap. All rights reserved.