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 jobname in the job

Hi,
I am using the following expression in tmap -
(String)globalMap.get("jobName")
to tlogrow, but this is coming as null. I want to capture the jobname and write it to a table along with other fields.
Thanks,
Vishu
Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi Vishal,
Try using just the keyword in the Expression Builder.
This should help you. 0683p000009MACn.png
MathurM
Anonymous
Not applicable
Author

Thanks! MathurM
Can you help me with another question? I need to pass the jobName from parent job to child job.
Thanks,
Vishhu
_AnonymousUser
Specialist III
Specialist III

Hi Vishhu,
If you already defined a context variable with the name 'jobName' in your parent job and child jobs then you can simply pass the same parameter in tRunJob component.
Please not that it is not necessary to have the same variable name in both the jobs such as parent and child.Define your own context variable like below and configure accordingly in tRunJob component.
Define context  :

configuration in tRunJob component :


Please see the difference in context variable names in parent and child jobs.
In parent job : jobName
In child job : job_name
If you want to transmit all the context variables from parent to child job then use the 'Transmit whole context' option, so that you don't need to define them all in the parameters section.
Hope that helps.