Table of Contents Previous Section

WOSimpleArrayDisplay

Synopsis

WOSimpleArrayDisplay { list = anObjectArray; [numberToDisplay = anInt;] [itemDisplayKey = aKey;] [listAction = methodName;] [listActionString = actionString;]};

Description

The WOSimpleArrayDisplay component is intended to display a to-many relationship of an Enterprise Object. It could also be used to display an array of objects.

The WOSimpleArrayDisplay is designed to only provide an idea of what is in the relationship (or list). It only displays the first n items in the list, where n is specified by the numberToDisplay attribute. (The default is 5.) If you want, you can have a hyperlink displayed at the bottom of the list by specifying the listAction and listString attributes. You could use this hyperlink to provide more information about the relationship or, for example, to list all of the elements in the relationship.

If you use Direct to Web to create your application, you may have a page that uses WOSimpleArrayDisplay.

list
Array of items to display.
numberToDisplay
The number of items to display at one time. The default is 5 items.
itemDisplayKey
Key to the value that should be displayed for each item. For example, if you were displaying a movies entity object, you'd want to display the value of the movieName key.
listAction
Method to perform when the hyperlink is clicked.
listActionString
The string that should appear on the hyperlink. The default is "Inspect."

Table of Contents Next Section