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] Set Global Variable Dynamically

Hi,
I want to set global variable in my job. The value of variable should be equal to value received from tMap Component. 
How to do this?
0683p000009MEnd.jpg
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

hi all,
what data are you store in your globlaMap ?
because as you iterate on 'list file' you already some information in global var (globalMap) managed by Talend.
@see outline (on left menu at bottom repository by default)
On the other hand, you're using a tJava component and use a flow from it. it couldn't work as tJava cannot manage flow.
And be aware that as you iterate, if you store value in the same global var (set global var) you 'll only got the last value of iteration.
regards
laurent

0683p000009MEpx.png

View solution in original post

5 Replies
Anonymous
Not applicable
Author

In the value field use following: Set_FileName.column_name
Anonymous
Not applicable
Author

hi all,
what data are you store in your globlaMap ?
because as you iterate on 'list file' you already some information in global var (globalMap) managed by Talend.
@see outline (on left menu at bottom repository by default)
On the other hand, you're using a tJava component and use a flow from it. it couldn't work as tJava cannot manage flow.
And be aware that as you iterate, if you store value in the same global var (set global var) you 'll only got the last value of iteration.
regards
laurent

0683p000009MEpx.png
Anonymous
Not applicable
Author

Hi ksultania,
Would you mind giving us more description about your current use case?
Elaborating your case with an example with input and expected output values will be preferred.

Best regards
Sabrina
Anonymous
Not applicable
Author

Thanks! Resolved the issue.
Anonymous
Not applicable
Author

great,
Can you give more information about your issue for Talend community.
And set topic as resolved
Thanks
regards
laurent