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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bima
Contributor
Contributor

Search context variable references

Hi everybody,
we maintain a pretty big Talend project and we are trying at the moment to clean it up (remove old references and all).
We were searching for some files, defined in context variables containing file names, to see if we can remove those old files. But, a part of searching manually in all jobs, we did not find a way to search for context variables references in our whole project.
Is it possible ?
Thanks very much for any help.
Labels (2)
4 Replies
Anonymous
Not applicable

hi,
perhaps , have a look at items files (files generated by talend under your project workspace => process)
look for context/contextParameter ; you'll find all param&values related to each jobs
hope it help
regards
laurent
Anonymous
Not applicable

Hi,
Job context is saved in related .item file. Repository context is located in project/context directory.
For running context, there will be Default.properties(Defaule is the name of Context group) files generated under "Context" directory where java code will be generated.
Best regards
Sabrina
0683p000009MEp9.png
bima
Contributor
Contributor
Author

Ok thanks kzone and xdshi for your reply, that provides some help. Finally in the context tab of the job, we can find these information too.
However, it looks like i have some jobs/item files containing some context variables that are not used inside. I think this may come from the fact that these jobs have been duplicated from other or being applied some full context blocks. 
Is there a way to automatically associate to a job only the variables related to it ? Therefore allowing to search references efficiently ? Is there a functionnality for that in the business edition ?
Thanks.
Anonymous
Not applicable

there no way, as far as I known to retrieve such information.
you can declare as many context variable as you want without using them.
Varaible contexte can be declare localy to the job (built-in) mode or in context group (repository). 
you can re-use variable from context group in any job.
So you can create several context group and only use the right context in each job.
https://help.talend.com/search/all?query=How+to+centralize+contexts+variables&content-lang=en
regards
laurent