andreic wrote
Hi everyone,
I'm relatively new to AwareIM, working on an application for our institute, and encountered a situation with simple cancelling of work on forms:
I need a way to provide a simple "Cancel" button to the user that closes the form and discards any changes done without asking questions.
I can't seem to get this done because:
- A button of type "Close Form" in the panel operations of the form always shows the "Save Changes?" dialog box, which includes a "Yes" button so that's not ok.
Typically it is good design to ask "Are you sure?" before discarding users work.
andreic wrote
- If that same button has the option to execute a process after closure, the "Yes" option doesn't actually save the form anymore (a bug?), which is misleading so not ok also. I thought I'm supposed to capture the "Yes" in that process with Question.Reply but that doesn't do anything either.
What are you trying to do after save? If it is related to the BO that you are saving then you are often better to create a business rule to do something like
IF BO IS NEW THEN x,y,z
Alternatively if it is being done after a change has been made to the BO then a business rule
IF BO WAS CHANGED THEN x,y,z
You can be more specific and focus down to specific attributes being changed
IF BO.Attribute WAS CHANGED THEN x,y,z
andreic wrote
- If the button is instead of type "Start Process" and the process calls EXEC_SCRIPT 'AwareApp.closeComponent(parser.m_widgetInfo,false,false);', the same dialog appears anyway, so that doesn't solve anything.
There are limits to the type of buttons that are visible on a new BO (SAVE/CANCEL). Operation buttons only show on BOs after they have been created.
andreic wrote
This function by the way is mentioned in user manual but not included in its appendix D (should be added?)
- A user can click on a menu item outside of the form to discard all changes, that works without asking to save changes, but is not a nice solution.
If the same action of that menu item (process to display a visual perspective) is however started from a "cancel" button on the form, the "Save Changes?" dialog appears again...
Is there way to implement a clean "Cancel" button or somehow disable the "Save Changes?" dialog?