The object (Decis. Msg) allows the user to interact with the application by making a decision through a dialog box displayed on the screen.
This object is formed by a combination of the (Message) and (Decision) objects. It displays a dialog box containing a questioning message to the user and two buttons (Yes/No) as shown in the image below. The goal is for the user to read the message and make a decision by choosing one of the options (Yes/No).
The object associated with this message has two outputs (Yes/No). If the user chooses the option (Yes) in the dialog box, the connection (Yes) of the object will be executed, if the user chooses the option (No) in the dialog box, the connection (No) of the object will be executed.
In the example in the image below, if the user chooses the option (Yes), the object (Expression) will be executed, if the user chooses the option (No), the object (Abort) will be executed.
Example of object usage (Decis. Msg)
Below we will demonstrate a practical example of using the object (Decis. Msg). Let’s use the interface (8D) – Eight disciplines problem solving as a reference. In this example, when the user clicks save and the field (Follow-up) is equal to (On Going), we will show a message asking the user if he wants to send the report for review. If he answers yes, let’s change the value of the field (Follow-up) from (On Going) to (In revision).
Post your comment on this topic.