Confirm Panel

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:

ConfirmPanelImg01

We set Confirm as True and fill Message, Title and Type properties:

ConfirmPanelImg02

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).

ConfirmPanelImg03

Finally we visualize this action at runtime:

ConfirmPanelImg04

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