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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

key value pairs

my requirement...
i want to create key value pairs ...
1)one set of such key value pairs would be named NormalizeStatus
2)another set would be named NodeModel
...etc...
i could use tcontextload...but is it possible to use multiple tcontextload's in the same job...possibly i could RENAME each tcontextload and use it to reference the required one??
Labels (2)
3 Replies
janhess
Creator II
Creator II

You can load multiple files into contexts by using tFileList-->tFileInputDelimited--->tContextLoad
Anonymous
Not applicable
Author

yup, it worked....thanks a lot.. 0683p000009MACn.png 0683p000009MACn.png
earlier i had a problem because i was trying to read using globalMap.get(key) instead of using context.get(key)...
Anonymous
Not applicable
Author

hi,
i am facing another issue.
i loaded the key value pairs as you said above.
now i have to iterate through the keys and perform another operation---i.e., i want to fill an xml file..

so ,
after loading into the tcontextload,---------onsubjob ok----->tloop----->tjava
and in tjava ,i just tried getting the values by giving (String)context.get(key);
it returns the ERROR: key cannot be resolved to a variable

how do i solve this?