Attribute | Mand. | Description | Default |
id | yes | Id of the preference. | |
idref | yes | Id of the action for which this preference was created. | |
name | yes | Name of the preference. | |
fixedColumn | no | Id of a field which associated column was fixed if the view is a table. | |
nbObjects | no | Number of displayed objects in the current view | |
user | no | Id of the end-user who the preference is associated to. | |
default | no | Specifies that the preference is the default one : the preference used for display when opening a view. | false |
defaultForMobile | no | PREFERENCE.defaultForMobile | false |
forPortlet | no | PREFERENCE.forPortlet | false |
readOnly | no | Indicates that the preference is read-only (cant' be changed) when set to true. | false |
lastFileName | no | Last file name used for this preference (only used when saving import/export parameters). | |
columnSizes | no | PREFERENCE.columnSizes | |
showAs | no | Display mode set for this preference. |
<!ELEMENT PREFERENCE ((FILTER | FILTER_REF)?, (SORT | SORT_REF)?, (FIELD_REF)*, EXTERN*)> |
Element | Mand. | Mult. | Description |
FILTER | yes | no | Filter of the preference. |
FILTER_REF | yes | no | Reference to a filter of the preference. |
SORT | yes | no | Sort of the preference. |
SORT_REF | yes | no | Reference to a sort of the preference. |
FIELD_REF | yes | no | Ordered list of fields displayed to the end-user. |
EXTERN | no | yes | Declaration of external entities used in the preference definition or in the filter or in the sort. |
<?xml version='1.0' encoding='ISO-8859-1'?> <!DOCTYPE PREFERENCE SYSTEM 'leon/conf/dtd/leon.dtd'> <PREFERENCE id='pref1' idref='projectTable' name='Projet en cours' fixedColumn='projectClient'> <FILTER id='_filterPref1' type='OR'> <EXP idref='projectState' value='prjstate1'/> </FILTER> <SORT id='_sortPref1'> <SORT_CRITERIA idref='projectAmount'/> <SORT_CRITERIA idref='projectClient'/> </SORT> <FIELD_REF idref='projectClient'/> <FIELD_REF idref="projectName"/> <FIELD_REF idref="projectDate"/> <FIELD_REF idref="projectAmount"/> <FIELD_REF idref="projectState"/> <EXTERN id='projectTable'/> <EXTERN id="projectName"/> <EXTERN id="projectDate"/> <EXTERN id='projectState'/> <EXTERN id='projectAmount'/> <EXTERN id='projectClient'/> </PREFERENCE> |