Talend tMsgBox component helps you to display a popup message box. You can use this Talend Message box in between the job components to make a decision. In this example, we use this Talend tMsgBox component to display a simple message and total records.
Talend tMsgBox example
Drag and drop the Talend tMsgBox component from the palette to the job design. As you can see from the tMsgBox Component tab, it has the default message box title, Button, Icon type, and Hello World message.
The list of available buttons is shown below. Please use it as per your requirement.
- OK,
- Ok and Cancel
- Abort, Retry, and Ignore.
- Yes, No and Cancel.
- Yes and No.
- Retry and Cancel.
- Question.
And the icons are
- Icon Stop
- Icon Question.
- Icon Exclamation.
- Icon Information.
Here, we changed the default message and ran the Talend Message Box job.
From the below image, you can see the message box.
Talend Message Box Example 2
To demonstrate this, we are using the tFilerRow job. Next, we connected the On Component Ok trigger from tDBInout and tDBOutput to tMsgBox.
For the first message box, we are displaying the total number of input records from tDBInput to tFilterRow.
We are displaying the total records inserted into the target table after the filter row component is applied for the second message box.
Let me run this Talend tMsgBox Job. The below image shows the first message box displayed after the tDBInput component is OK.
The second Talend message box after the tDBOutput component is OK.