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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

Use result of tmsgbox YES/NO

Hello,
i'm using a tmsgbox with the YES/NO buttons. The goal of this, is that if user click YES job continu, if NO job is stopped.
I don't know how to do this.
I think simply use the trigger run if after my tmsgbox. As if condition i have set :
((String)globalMap.get("tMsgBox_1_RESULT"))=="1"
But this is always false. I don't know what is the value return by TmsgBox when YES or when NO.
Does anyone know it?
thkx,
jean
Labels (2)
2 Replies
Anonymous
Not applicable

hi,
you are on the right way .
First use equals to compare 2 String in java.
when user clic "yes" , it return "0" so compare result box like this :
order 1
if
((String)globalMap.get("tMsgBox_1_RESULT")).equals("0")

do something (in my TjavaFlew : out.println("continue") 0683p000009MA9p.png
order 2
else
!((String)globalMap.get("tMsgBox_1_RESULT")).equals("0")

do something else (out.println("stop");
_AnonymousUser
Specialist III
Specialist III
Author

thank a lot