It's all about the answers!

Ask a question

Passing Parameters in BIRT


Andrew Trobec (49712144139) | asked Jul 07 '10, 6:23 a.m.
Good Morning Everyone,

I would like to know if it is possible to pass parameters between data sets in order to calculate output values.

For example, if I have a data set that takes WI_ID as input and gives me a TIMESTAMP_KEY as output, can I create a computed column in another data set that passes a WI_ID to recover the value of the TIMESTAMP_KEY?

Thank you in advance!

Best regards,

Andrew

One answer



permanent link
James Moody (3.3k24) | answered Jul 13 '10, 11:35 a.m.
JAZZ DEVELOPER
On 7/7/2010 6:38 AM, spriteburn wrote:
Good Morning Everyone,

I would like to know if it is possible to pass parameters between data
sets in order to calculate output values.

For example, if I have a data set that takes WI_ID as input and gives
me a TIMESTAMP_KEY as output, can I create a computed column in
another data set that passes a WI_ID to recover the value of the
TIMESTAMP_KEY?

Thank you in advance!

Best regards,

Andrew


Here's how we typically do it.

1. Create data sets A and B, where A produces a value that B wants to
use as an input.
2. In the onFetch for A, store the value into a javascript variable
3. In the parameters for B, use the javascript variable as input to the
data set.
4. Create two hidden labels at the top of the report, the first one
bound to A and the second bound to B. This is important because it
establishes ordering between the two.

Hope this helps.

james
RTC Reports Team Lead

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.