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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

tRunJob : retrieve context variable value redefined inside a subjob

Hi,
I tried the following :
- starting on a master job, I send a context variable value to a subjob using the tRunJob module ;
- then inside the subjob I redefine the value of this context variable ;
- and then back in the master job I would like to use the redefined value that was set inside the subjob.
Unfortunately it looks like it is not possible, since context variables cannot be retrieved from a subjob.
Am I right ?
Thanks
Labels (2)
7 Replies
Anonymous
Not applicable

Hello,
I'm sorry to say yes you're right.
If you want to share variables between jobs, you have to write them to tmp file or tmp databases.
Regards,
Michaël
Anonymous
Not applicable

is this also not possible if i wish to send context parameters to subjobs and sub-sub jobs .....
Anonymous
Not applicable

aviator,
I don't understand what you mean.
You can pass parameters from grand father to son jobs via the father without any difficulties.
Automatically and manually...
You just need to share the same context between the 3 jobs.
Anonymous
Not applicable

what i mean is : context parameters whose values have been redefined in a tJava component, can they be passed to sons, grandsons and so on ?
because when i try this i get errors ............ correct me .. am i missing something
Anonymous
Not applicable

First basic answer :
tJava component should never modify "internal" variable.
Context values can be modified using tContextLoad and this is the only correct behavior that I would ever recommend.
What would happend to your job if we modify those internal variables ?
What is your TOS version ?
I think that it's probably related to 5393
HTH,
Anonymous
Not applicable

Ok i guess thats the problem i am having.... Could you explain how it can be modified using a tcontextload?
Many thanks 0683p000009MACn.png
Anonymous
Not applicable

Perhaps in the next version there can be a special Load-Context-Prejob because I have this problem loading a config in every job