Show TOC

Using Document Properties in XML FormsLocate this document in the navigation structure

Use

Each XML document has document properties such as the date when it was last changed. You can display the values of these properties in RenderListItem and Show forms. You can also save values in changeable properties that authors can enter in Edit forms.

There are changeable and write-protected document properties.

  • Changeable document properties are indicated by a blue symbol. You can create input fields and selection controls with a reference to these document properties in order to set or change property values in the Edit form.

  • Write-protected document properties are indicated by a black symbol. You can only create label or image controls with reference to these document properties, allowing you to display the property values on display or list forms.

    Note

    The maximum length of property values depends on several factors, such as the repository in which you save the items. The following length restrictions are valid in CM repositories.

Property

Maximum number of characters

Description

1024

ContentLanguage

256

Encoding

32

Mime Typ

50

Created By/Changed By

255

Procedure

In the XML Forms Builder, document properties are displayed on the Data Model tab page.

Note

If the document properties are not displayed immediately, double-click Properties to expand the node.

  • Optional: Model properties in the KM configuration.

    Document properties that you modeled in the KM configuration are available in the XML Forms Builder.

    Note

    After creating or changing document properties in the configuration, you have to load them to the XML Forms Builder. Use the secondary mouse button to click Properties on the Data Model tab page, and then choose

    Note

    Reload Properties. The validity of a document property can be restricted to particular folders in the configuration. If you are using predefined document properties in forms, make sure that you save the XML files in a folder in which these document properties are valid.

    For moore information, see Predefined Properties .

  • Display document properties in RenderListItem or Show Iforms.

    For example, to display the date and time when a news item was created, create a label control with a reference to the Created On system property.

  • Save the content of the Edit form in the document properties.

    Changeable document properties are indicated by a blue symbol.

    Create input fields and selection controls with references to changeable document properties on the Edit form.