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: 
Jeeva
Contributor
Contributor

[resolved] Access exchange / context object from cMap

Hi Team,
I've come across a scenario where i have to access the context parameters in the cMap component. 
I've used bean class using the parameterised constructor to set the values in instance variable and the same i accessed from java static method. 
Is there any other way to access the same? The problem with this method i ESB container needs to be restarted completely to initialize these variables.
Jeeva
Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello Jeeva ,
You would need to set context variable as exchange property like a header before you pass to cMap . And in actual map in TDM , you would use GetMapProperty function and just give your context variable name. See attached screenshots.
0683p000009MCkW.png 0683p000009MCOw.png

View solution in original post

2 Replies
Anonymous
Not applicable

Hello Jeeva ,
You would need to set context variable as exchange property like a header before you pass to cMap . And in actual map in TDM , you would use GetMapProperty function and just give your context variable name. See attached screenshots.
0683p000009MCkW.png 0683p000009MCOw.png
Jeeva
Contributor
Contributor
Author

Thank you so much for your reply. It works.