Listindex (attribute of property)

From JRapid

(Redirected from Listindex)
Jump to: navigation, search

The "listindex" attribute indicates the column that will be used as an index for the listings (required). This attribute is only required when the property has the collection attribute set to list.

Usage

 <property collection = "set | list | sortedset" listindex = COLUMN_NAME 
 childproperty = COLUMN_NAME/>

Example

A common example of the use of listindex is when embedding a list for example for embedding an invoice inside a client form you need to specify the column you want the invoice to be ordered by.

 <property childproperty="invoice" collection="list" embedded="inline" entity="InvoiceLine"
 label="Detail" listindex="product" name="lines"/>
Personal tools