Search This Blog

Wednesday, August 18, 2010

General Standard to be followed in Web form development

Dear All
General Standard to be followed in Web form development

On Initial Form LOAD

All data entry controls should be disabled.
Buttons New, Edit, Delete, Cancel should be enabled based on control permission set for that user.
If there are no records initially, then New & Cancel alone should be enabled.
If some records exists, display the records in list box in "ASCENDING" order.
Display the first record details.
The first record should be Highlighted in the grid.

On clicking NEW

All data entry controls should be enabled without any text.
Save and Cancel should be enabled. – i.e., ButtonHandler(0, 0, 1, 0, 1)
But date controls can have current date within it.
Cursor should be focused at the first entry text box.
Session(“CurrentMode”) to be set to “NEW”
Control permissions are not called.

On clicking EDIT

Save and Cancel should be enabled. – i.e., ButtonHandler(0, 0, 1, 0, 1)
All data entry controls should be enabled with the corresponding data in it.
Cursor should be focused at the first entry text box.
Session(“CurrentMode”) to be set to “EDIT”
Control permissions are not called.

On clicking SAVE

Validate all Mandatory fields - Client and Server .
All the text fields should be trimmed before saving.
Save should be disabled and all other buttons should be enabled based on control permissions.
All data entry controls should be disabled.
Refresh the List box data with the newly entered data.
The screen should go to its initial state.
After Save that Session(“CurrentMode”) should be change as Nothing.
Details of saved record should be displayed and highlighted in the grid.

On clicking Delete

First check whether the record can be deleted or not.
If the record can be deleted then ask for confirmation and continue.
If not, quit the delete process.
If multi selection is done, delete based on the selected checkbox in the grid.
If multi selection is not done, then delete the item that is displayed.
If multi selection is done and delete is clicked, delete all records which can be deleted, and display the records which cannot be deleted.

On clicking CANCEL

The screen should go to its initial state.

General Validations

1. After completing each process refresh the screen.

While handling user log permission check any other coding doesn’t affect it.
All POP-UPs should also follow the same procedure given.
Mandatory fields are needed. Explanation about * in each form is not necessary.
Tab order should be Maintained.
For numeric fields, get input in right align and display it in right align.
In error msg, only the Reserve words should have the first letter in caps.
The first input strip should start in white color.
The control background color should match the strip color.
All date/time fields should be selected by using calendar control.
Date/Time text box should be locked
Current Date/Time values should be taken from Application Server.
13. All checking's must be with only with the server date.

14. Use Required Field Validator to validate mandatory fields.

15. Use Regular Expression Validator to validate the content of the control.

Validation for integer field, date fields, and alpha numeric fields should be done with common class codes.
Special characters with "Enter KEY" Accept.
Single Quote validation should be done all controls.
Properties of form controls and corresponding database field should match. Ex: maxlength, numeric or text.
Styles for each control should be used from CSS.
Standard error messages should be used.
Code comments should be written for conditions, queries, functions

No comments:

Post a Comment