TMsgBox Question Button pressed

One Star

TMsgBox Question Button pressed

Hello,
I am using the component tMsgBox in mode "QUETSION".
In this mode, I need to understand when you press the "OK" and "Cancel" button. Unfortunately in mode "QUESTION" does not apply the concept tMsgBox_1_RESULT = "0" or "1".
Can someone please help me?

Community Manager

Re: TMsgBox Question Button pressed

tMsgBox_1_RESULT stores the real answer you input, if you press 'Cancel' button, it is null value.
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: TMsgBox Question Button pressed

Hi,

I have a tMsgBox_1 and a If condition, who go to a tJava code where I have note in :

((String)globalMap.get("tMsgBox_1_RESULT")).equals("0")


When the user click on OK it do what it's in the tJava must do else close.

Hope it help you.
Burnside.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog