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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to get a result into a context variable?

Hi!
Is it possible to get a result of a job into a context.variable for further use in that job?
I'm thinking about something like:
select max(xy) from abc ---> context.maxvalue
Thanks for your help!
Pete
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Pete
You can put the result to a context variable or a global variable on tJavaRow or tSetGlobalVar, for example, on tJavaRow:
tMysqlInput--main--tJavaRow
on tJavaRow:
context.varName=input_row.columnName;
You can find scenario about tSetglobalvar in this page:
https://help.talend.com/search/all?query=tSetGlobalVar&content-lang=en
Shong

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi Pete
You can put the result to a context variable or a global variable on tJavaRow or tSetGlobalVar, for example, on tJavaRow:
tMysqlInput--main--tJavaRow
on tJavaRow:
context.varName=input_row.columnName;
You can find scenario about tSetglobalvar in this page:
https://help.talend.com/search/all?query=tSetGlobalVar&content-lang=en
Shong