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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Mkrishna
Contributor
Contributor

Regarding tsetglobal variable - how it is working

Hi

      Anybody can explain me about this tsetglobal variable , like how it is working and what is the output of this functions. 

initially i set in tglobalvariable as : "count"=0

 

((integer)globalmap.put("count",((integer)globalmap.get("count"))+1));

 

Labels (2)
3 Replies
Anonymous
Not applicable

tSetGlobalVar is just for setting values in the globalMap.

You can use tSetGlobalVar to set your variable "count" to 0 initially, and later you can access the variable using globalMap.get("count"). 

Mkrishna
Contributor
Contributor
Author

thank you for your reply,

 

Ya i know how to use this , but i don't know how it is working and what will be the output.

get part will it work first or put part will it work first............?can you show along with the output

Mkrishna
Contributor
Contributor
Author

Hi,

have u used this function before......................if yes than what will be the output of this functions.

 

 

((integer)globalmap.put("count",((integer)globalmap.get("count"))+1)); what it will return when i assigned this to a variable in tmap.