Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Tools and Techniques

   

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:

You can use the Web Assistant to display the related records directly in the table instead of with an Inspect button; see Customizing Your Application With the Web Assistant .

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)