Web Client Pages—Exercises
Main Exercise
Purpose: The purpose of this exercise is to show you how
to work with a web client page and the data it contains. We will use the
Persons
page, which is used for handling
data about persons in the system.
Windows:
Employee Competency Assessment
Populate a Page with Data
Purpose: All data (about Employee Competency Assessment)
is stored in the database. This exercise shows how you can retrieve this data into
the page, and subsequently start working with it. This time we will retrieve all
the data in the database.
- Browse to the Employee Competency Assessments
page. This page displays data about competency assessments for employees in
the system. We want to see all competency records for all employees.
- Click Find. You have now entered the Find mode of this page.
- Click OK to populate the page.
- You will now see the data that was retrieved, displayed in a table.
Note You will use this page for the rest of the exercise.
Query the Database to Populate the Page
Purpose: When populating a page, we are often not interested
in all the data in the database. We can then create a query, asking only for data
that matches our search criteria.
- Enter the Find mode by clicking Find.
- We now want to retrieve records for a particular employee. In the Employee
ID textbox, enter the required employee ID or select from the List of Values.
- Click OK. View the Employee ID column to see that you only
retrieved records of desired employee.
- If the query does not return any records (the page is empty), repeat steps
2 and 3, using another employee.
Note Fields with a green dot beside them are more suitable for searching,
they will give better results for the query. Fields with a gray dot beside them
are not recommended for searching.
Query the Database Using Wild Cards
Purpose: The wild card is a powerful tool to retrieve data
that does not match a precise search criteria.
- Enter the Find mode. This time we want to find all employees whose name
begin with A, for example, Adam.
- In the Employee Name field, enter A%. The % value matches
everything, so we are saying, "Find everything that begins with an A, followed
by any value."
- Click OK. View the Employee Name column to verify that only
records containing names that begin with an A were retrieved.
- If the query does not return any records, try another character or query.
Query the Database Using Non-Case Sensitive Searches
Purpose: Entering a% instead of A% in the
previous query would result in different data retrieval. The queries differs between
upper and lower case. If you're not sure which case records use, you can do
searches which ignore case when retrieving records.
- Enter the Find mode and clear the Case sensitive search check box.
This means that the query will retrieve both upper and lower case characters.
- Enter a% in the Employee Name field and click OK.
- If you retrieved any records, all records with names beginning with either
A or a will be included.
- Repeat step 2, but enter A% and clear the Case sensitive search
check box. The result should be same as the previous query.
Note: Case sensitive searches can be done more quickly than
those that do not specify case, since you quickly eliminate records that do not
match the case of the query.
Count the Results from a Query
Purpose: This time we want to see how many records our query will retrieve
before we actually retrieve the records. This could be helpful in deciding whether
or not you should narrow your search first.
- Enter the Find mode.
- Enter A% in the Employee Name field.
- Click Count.
- A line of text under the saved query section will indicate how many records
this query will retrieve.
- Click OK to retrieve the records.
Single and Multi-row Modes
- Populate the page. You should now have table filled with data.
- Each line has a row number to the left. Click any of these numbers.
- You have now entered single row mode, where you can see each record (row)
of data in more detail. Click the arrows at the left end of the command bar
to browse among the records.
- Click Overview in the command bar to return to the multi-row (table)
mode.
Note: Operations that should be performed on just one row
are located in the pop up menu in the multi-row mode. However, in single row mode,
these operations can be found in the command bar, since you're only viewing one
row (record) at a time.
Sorting the Multi-row Table
- Populate the page in multi-row mode. Each column in this mode has a header
label at the top, which can be clicked.
- Click Employee Name. The rows in the table is now sorted by the values
in this column.
- Click the same label again, the table is sorted again by the values in this
column, but in reverse order.
Create a New Employee Competency Assessment Record
Purpose: This exercise will show you how to create a new
record.
- Click New in command bar. You have now entered the new record mode.
- Enter suitable data in all the fields.
- Use the List of Values in the Employee ID field to select a Employee
ID.
- Click Save & Return. The record has now been saved in the database.
- If the page was empty when you clicked New, the page will only show
this new record. To see all records, just populate the page.
Edit a Record
Purpose: This exercise will show you how to change the name
on the new record we just created.
- If the records are displayed in multi-row mode, click the triangle next
to the row number to access the pop-up menu, then click Edit.
- If the records are shown in single row mode, browse to the record we just
created. Click Edit in the command bar.
- You can now edit the record. Change the name in the Employee Name
field, then click Save & Return. You have now saved your changes in the
database.
Delete a record
Purpose: This exercise will show you how to delete a record.
- If the records are displayed in multi-row mode, use the pop-up menu for
the record and click Delete.
- If the records are shown in single row mode, browse to the record and click
Delete in the command bar.