Listunique (attribute of property)

From JRapid

(Redirected from Listunique)
Jump to: navigation, search

The listunique attribute indicates that a list will not accept duplicate values as they normally do.

Usage

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

Example

List unique is useful when when you need to get a list ordered initially by a column for which you use listindex and then you want to manually change the order of the items for which you need to also include the attribute sortable.

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