|
Showing a "no records found" message
Hiding page elements when no records are found may still confuse some users. For instance, the modifications made to the example page (so far) produce the following page when no records are returned: |
|
|
|
Faced with such a page, a user may wonder if there was an error or if the search feature is running at all. The solution is to apply a Show Region server behavior to a message alerting the user that no records were found. If records are found, the server behavior hides the message; if records are not found, the server behavior shows the message. This section describes how to create such a message.
To create a "no records found" message:
1 |
Open the results page in UltraDev's Document window. |
|
The example page used in this article, including the modifications made to it so far, looks as follows with Live Data turned off: |
|
|
|
|
|
|
|
Note: The gray "Show If" outlines are not visible with Live Data turned on. |
2 |
Compose and format the message alerting the user that no records were found. |
|
In the example page, a one-cell table was used to position the message on the page as follows: |
|
|
|
|
|
|
When you run the page in a browser and no records are found, the Show Region server behavior shows the message while the other Show Region server behaviors hide the record-display elements. |
|
|
|