Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER NOW!
cancel
Showing results for 
Search instead for 
Did you mean: 
444sofiane
Contributor II
Contributor II

Set a variable in Load Script

Hello Everyone !

I need your help on this problem :

I need to change the value when the user changes it in the app (0 to 1)of a variable already existing in the load script (if the user changes the value => variable = 2)

Thank you for your answers.

444sofiane_0-1669026176075.png

Labels (3)
1 Reply
MartW
Creator II
Creator II

after the then , press enter and type let and then $(tTriggerKO)....  also close this if statement with endif (inside the loop)

but if Nom_Ctrl has more then 1 value in the data set this statement will only change 1 time because after the first iteration the variable is already 2 .

 

if you don't want that you can move this let statement to the end of the script and do something like this

if $(vTest) = 1 then;
let vTest = 2;

endif;