Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating Rule “include-back-and-undo-buttons-on-every-form/rule” #8222

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions rules/include-back-and-undo-buttons-on-every-form/rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
type: rule
title: Do you include "Back" and "Undo" buttons on every form?
uri: include-back-and-undo-buttons-on-every-form
authors:
- title: Adam Cogan
url: https://ssw.com.au/people/adam-cogan
created: 2014-03-14T00:22:00.000Z
guid: 3fbae7db-7cec-4daa-8371-47261cd6117b
---

Following on from including a URL, almost every form should have a Back and an Undo button which takes you back to the previous screen, or reverses the last action. This is just like Outlook (see figure below), it has a Back button to take you to the previous folder and an Undo button.

<!--endintro-->

::: good
![Figure: Good example - Back & Undo buttons in Outlook Advanced toolbar](outlookviewbar.jpg)
:::

**Notes:**
- "Back" button should only be implemented if different views can be shown in the same window
- Don't put "Undo" buttons on non data entry forms such as a Print Preview form

The list of forms/URLs and the order in which they have been accessed should be stored in a DataSet held in memory (like IE) - not saved to disk.

For example:

| **Menu** | **Action** | **Undo** | **Back** |
| ----------- | ----------------------------------------------------------------- | -------------------- | ----------- |
| Cut | Remember: Remember Text and Cursor Position <br>Cut To Clipboard | Return to Remember | n/a |
| Save Record | Remember old values <br>Execute procCustomerSave <br>Close Form | Return to Old values | Reopen form |

Sample code implementation in the [SSW .NET Toolkit](https://ssw.com.au/ssw/NETToolkit).
Loading