List Pages and Select Components
A list page displays a table showing multiple records of an entity. List pages are used to display the results of a query, or to show the records satisfying a to-many relationship in another list or inspect page.
Each row in the table represents a record. By default, a batch of ten records are shown in a page. To change the batch size, type a number in the "Display _ Items" field and press Return or Enter. To display additional records in either direction, click the triangle buttons or enter the page number you want to go to.
Each column in the list represents one of the entity's properties. By default, all properties are shown in alphabetical order. You can hide columns and change their order by using the Web Assistant; see Customizing Your Application With the Web Assistant .
The symbols to the right of attribute names represent their sort order:
To change the sort order for any attribute, click the title to cycle between ascending, descending, and unsorted. By default, the records are sorted in ascending order by the attribute in the first column. You can specify up to three columns to sort on; the last one specified becomes the primary sort key.For properties that represent relationships, an Inspect button appears in the cell by default (DisplayToManyFault).
Note: By default, the list page does not display relationships (including the Inspect buttons). You can configure the list page to display relationships using the Web Assistant; see Customizing Your Application With the Web Assistant .When you click the Inspect button one of two things happen, depending on the type of relationship:
- If it is a to-one relationship, an inspect page appears, showing the destination record. In the above example, the Movie entity's Studio relationship is a to-one relationship to the Studio entity. If you click the Inspect button, an inspect page appears for the Studio entity corresponding to the selected movie; see Inspect and Edit Pages .
-
If it is a to-many relationship, another list page appears, showing all the destination records in the relationship.
In the above example, the Movie entity's Roles relationship is a to-many relationship to the MovieRole entity. If you click the Inspect button, a list page appears, showing all the roles in the selected movie.
The select component looks a lot like the list page, but instead of the Edit button there is a Select button. The select component occurs in multiple-component pages. In the edit-relationship page you click Select to add a record to a to-many relationship or select a record for a to-one relationship. In the master-detail page you click Select to select a record to edit. A select component looks like this:
© 1999 Apple Computer, Inc. (Last Updated July 27 99)