Discussion Board for collaboration on QlikView Scripting.
I cannot understand why this script is not working.... in both cases returns the else content!
MsgBox('question?', 'title', 'YESNO', 'ICONQUESTION') as YE
if YE =6 then
bla bala case Ye=6 (yes)
otherwise bla bla ye=7
Go to Solution.
Hi. Try like this:
MsgBox('ANALIZZO ANNO IN CORSO?', 'ANNO ANALISI', 'OKCANCEL', 'ICONQUESTION') as Y
if $(vY)=1 then;
You are missing the first qoute?
MsgBox( ' question?' .........
no this was a stupid error copying.... origanl script is:
LoadMsgBox('ANALIZZO ANNO IN CORSO?', 'ANNO ANALISI', 'OKCANCEL', 'ICONQUESTION') as Yautogenerate 1;if Y=1 then;trace yes;elsetrace no;end if;trace $(MyMessage);
I am not sure what the trace part is for but from the look of it I would say that the " ; " behind then should not be there.
no Dennis, this statement is correct:
trace Main table loaded;trace $(MyMessage);
(try this example in a script and it will write "Main table Loaded" in the Script Execution Progress popup window...)
what I do not understand is whatever button I press it uses the else part, even if the variable is correct!
Thanks a lot it works....
PS if you have time can you please tell me why??? I was copying help and didn't go... your Peek does it!!!!!!!!!!!!!!
Statement “IF” did not work with fields.