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

Getting Error in using contexts in trestclient queri parameter

Hii,

I am trying to retrieve data from webservice using trestclient. I want to use contexts in parameters of component trestclient. I have tried all the ways. Please see the screenshots attached. Anyone have a good solution?

Labels (3)
12 Replies
gjeremy1617088143
Master
Master

cowin API are restricted to be accessed only in INDIA

gjeremy1617088143
Master
Master

if you are in india you can use :

key:User-Agent Value:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51

in the header

gjeremy1617088143
Master
Master

if context not working : you can try to affect context var to globalvar and then use globalvar in the trestclient

:

in a tjava

globaMap.put("district_id",context.District);

 

in the trestclient parameter value :

(String)globalMap.get("district_id")