All view can be filtered and ordered via columns. Often user need predefined filter in order to safe time nito creation of standard filter
So in view definition we can add property in order to create predefined filter, the property can be:

setName(<value>)
Filter name

setLabel(<value>)
Label to show user when refeer to a filter.

setMaxRow(<value>)
Maximum number of rows view return when a filter is apply. Default (0) – All rows.

setCondition(<value>)
Filter condition for the view
<value> is an expression return a boolean value. Into condition is possible to set parameter for filter use

setOrder(<value>)
Define view order

setParameterProperty(<name>,<property>,<value>)
Set a property for the filter parameter.
Where
<name> is parameter name
<property> is property nam to set
<value> is property value:

  • position = parameter position
  • label = label to show when user perform a reference to the parameter
  • dataType = parameter data type .
  • allowNulls =  (true/false) if parameter can be null (Default false).
  • tableRelation = set a table relation(Syntax as TableRelation Table property).
  • bindColumn = inherit source table columns characteristic.

Last updatedMonday, 29 November 2010 00:18