Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Passing Parameters in BIRT

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 07 '10, 6:23 a.m.

Question was seen: 5,891 times

Last updated: Jul 07 '10, 6:23 a.m.

Confirmation Cancel Confirm