Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using query output as a variable

Hi,

I have a Terdata query of count rows from specific table and i would like to use the result of the query as a variable/context afterwards on the Talend job.

How can I do this?

 

Thanks

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

tJavaRow:
context.yourVariable = input_row.yourField;

tSetGlobalVar:
Just connect it to the DB component. It will create a global variable for you with a name based on the flow + the field name such as row1.yourField

View solution in original post

6 Replies
TRF
Champion II
Champion II

Push the result to a tJavaRow to populate the context variable.

You may also push the result to a tSetGlobalVar if you want to use a global variable instead of a context variable.

Anonymous
Not applicable
Author

Can you please elaborate about using this components as I'm not famailier with them?

What should I write in them?

 

Thanks

TRF
Champion II
Champion II

tJavaRow:
context.yourVariable = input_row.yourField;

tSetGlobalVar:
Just connect it to the DB component. It will create a global variable for you with a name based on the flow + the field name such as row1.yourField
Anonymous
Not applicable
Author

"yourfield" should be the column name that i want to use?

TRF
Champion II
Champion II

Yes
Anonymous
Not applicable
Author

Thanks a lot, it worked! 0683p000009MACn.png