1.2Edit/New/Duplicate Comment Page
The ‘Edit/New/Duplicate Comment page’ allows the user to edit an existing or duplicated comment or to provide data for a newly created comment. On this page user can also assign categories to the comment and choose to activate or inactivate the comment. The page consists of ‘Comment Text’ and ‘Code Number’ text boxes, an ’Active’ checkbox and an available/selected control. The ‘Selected’ categories will be empty for a new item, contain the assigned categories for an edited comment and contain the categories assigned to the comment on which this duplicate was based for a duplicated comment.
In all cases, the ‘Available’ categories will be populated with the collection of available categories excluding those that are in the ‘Selected’ categories list box.
The Edit/New/Duplicate Comment page is depicted in Figures 2,3 below.
Figure 2. New Comments page
Figure 3. Edit/Duplicate Comments page
The ‘Comment Text’ and ‘Code Number’ text boxes are used for data entry.
These text boxes have the following format:
’Comment Text’: 50 characters optional field, case insensitive, has to be unique. Cannot contain reserved characters (=,/, |, \, *, (, ), _, :, ;, #, %, ^, ?, [, ], etc.).
’Code Number’: One 3-digit integer number (from 0 to 999), optional field, has to be unique.
Both fields are empty on ‘New’ user action. On the ‘Duplicate’ action the comment text is modified using the standard duplicate protocol “Copy of {comment text value}.” and the number field is cleared.
The ‘Active’ checkbox indicates (when checked) that the comment is active. If it is not checked, it indicates that the comment is inactive. The ‘Active’ checkbox is checked by default for a new Comment.
Using the available/selected control, the user can add categories to or remove categories from the comment. A comment must have at least one category assigned to it.
The ‘Edit Comment page’ menu has the following options:
Menu Item |
Action |
Return |
Returns user to ‘Comments page’. |
Save |
Accepts the entered data, if valid, and stores it to the database without leaving the page. In the case of a new comment, after a successful save the ‘Comment Text’ and ‘Code Number’ fields are cleared and all categories are moved to ‘Available Categories Group’. When editing a comment, this action simply updates the database for the comment that is currently being edited based on the data entered and then leaves the fields displaying the entered data. In the case of a duplicated comment, after a successful save, the page is left populated with the newly entered/edited data. If no changes have been made, this results in no database update. |
Save & Return |
Saves the entered data to the database and returns user to ‘Comments page’. |
1.2.1Comment Text validation
The ‘Comment Text’ field is case sensitive and has to be unique. User will get an error in red color with the following message when trying to save comment with some existing text: “The maximum length of Comment Text field is 50 characters”. The ‘Comment Text’ field will be highlighted.
