WorkWithPlus provides the possibility to create actions that need user confirmation in order to execute some operations. It can be useful for developing actions that update records in database or are irreversible, in order to minimize user errors (clicking by accident to some action for example).
In order to describe this feature, we take Person instance as an example. We add a UserAction named UserActionPrint, like we appreciate below:
We set Confirm as True and fill Message, Title and Type properties:
Now we have develop the associated events. "DoUserActionPrint" event will invoke the Confirm action which will open the confirmation pop up. After application user selects some option of the pop up (Yes, No, Cancel) the event Dvelop_ConfirmPanel_BtnActionPrint.Close will be executed where GeneXus developer should determine what to do in each case (user selected Yes, or No, or Cancel if applies).
Finally we visualize this action at runtime:
Also, you can show a Comment/Observation field in the 'Confirm Panel', as it is displayed in the following link: Observation field in 'Confirm' feature
|