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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] accessing value of global variable set by joblet

Hi all,
I have global variable. The value was set in joblet.
Now how can I access the value of that global variable in main job? I can see the value in joblet but I get null value in main job
Cheers!
Labels (2)
1 Solution

Accepted Solutions
_AnonymousUser
Specialist III
Specialist III

Hi Foxtrot,
I am hoping that one of the two below listed will help you out.
-> getting a global value from the map can be done as follows... (String)globalMap.get("globalVariableName"); In this example, the name of the variable is called globalVariableName
and it is a type String. A note that you will need to cast the field to its type.
-> If you set the field as a context type, you can load it and access it via the context variable list. A thought.
My disclaimer... I am new to Talend myself. That said, I have used the above two methods when accessing values.
Regards,
Tom

View solution in original post

2 Replies
_AnonymousUser
Specialist III
Specialist III

Hi Foxtrot,
I am hoping that one of the two below listed will help you out.
-> getting a global value from the map can be done as follows... (String)globalMap.get("globalVariableName"); In this example, the name of the variable is called globalVariableName
and it is a type String. A note that you will need to cast the field to its type.
-> If you set the field as a context type, you can load it and access it via the context variable list. A thought.
My disclaimer... I am new to Talend myself. That said, I have used the above two methods when accessing values.
Regards,
Tom
Anonymous
Not applicable
Author

Thanks..it seems that I don't have joblet functionality in community version
Hence, I just used multiple subjobs 🙂