See Add an attribute to a form.
Procedure |
There are additional properties you must specify for list attributes. If the list attribute can be edited by the user, a selection list that displays the admissible objects is required. Two options are available. The selection list can be generated automatically or you can manually define a list (see Add a selection list). The second option is relevant if the selection list contains special cases that the automatic lists cannot cover. You can configure the selection list using a <parameter> child element with the name selectionList and specifying the name of the selection list as value. For an automatically generated selection list, the value for value must be AUTO. You can also customize the buttons for managing and manipulating the objects. Open, Edit, Create assignment and Remove assignment are the default buttons. They have the child elements <button.add> and <button.remove>. The button.idref property defines the button to be added or removed. location defines whether the button is to be inserted into the toolbar (toolbar) or displayed individually for each assigned object (row). type defines whether the button is only available if the user can edit the list attribute (writable) or if it is always available (always). |
Remark |
An automatic selection list includes the environment of the object, the list restriction of the list attribute, and the objects already assigned. The primary column of the selection list contains the attribute specified in the nameAttribute property of the selection object type. The other columns and filters result from the attributes defined in the descriptionAttributes property. |
Documents |
objectTypes.xsd |
Example |
ModifyObject_AddListAttribute \WEB-INF\config\custom\xml\custom.xml: Modify form |