Specifying Dataspy criteria
When you create, edit, or copy a Dataspy, you need to specify filter, sort, layout, and advanced criteria. When the Dataspy is applied to a list, only records that match the specified criteria are found, and they are displayed according to the specified sort order and layout.
To specify filter criteria:
See the example below to specify the sort criteria:
- In the left pane, click .
- In the first drop-down list, specify the field by which to sort the records and then click the sort ascending or sort descending button to set sort order.
- Repeat for additional fields as necessary.
See the example below to specify layout criteria:
- In the left pane, click .
- Move the fields from the
Function Procedure Add a field Select a field in Available Fields and then click the right arrow (>). Remove a field Select a field in Visible Fields and then click the left arrow (<). Add all fields Click the double right arrow (>>). Remove all fields Click the double left arrow (<<). Reorder fields Select a field in Visible Fields and then click the up or down arrow to move the field.
list to
the
list as described below:
- Specify the number of rows to retrieve from the database before downloading another set of rows.
You can specify the number of records to retrieve before another set of records is retrieved from the database in a list view. This setting does not affect the height of a table (the number of rows shown without scrolling the table); however, this setting is important because it affects the download and display speed for a list containing a large number of records.
For example, if the value is set at 100 (the default), the system downloads only the first 100 records that match the criteria specified in the selected Dataspy. When you scroll to the end of the 100 records, the next 100 matching records are displayed. If the value is set to 300, then no records are shown until all 300 records are retrieved.
See the example below to specify advanced criteria:
- In the left pane, click .
- Specify an additional Where clause as necessary. The Where clause is appended to the Where clause generated by the Dataspy filter. The Where clause is appended with an AND statement if a filter has been specified.
- Click SQL Statement field is read-only. . If the SQL statement compiles without error, a confirmation message is displayed. You can also click to view the entire SQL statement. The