bFjB8‖Data (for XML Form Documents)

ExLHH‖The Data tab page of the Properties dialog for an XML Form document offers some XML forms settings.

To access this command...

gyPpR‖Open context menu of a selected control on an XML Form document, choose Control Properties - Data tab.

DtgW8‖Open Form Controls toolbar of an XML Form document, click Control icon - Data tab.


LRQAq‖The possible settings of the Data tab page of a control depend on the respective control. You will only see the options that are available for the current control and context. The following fields are available:

FykLd‖XML data model

fEgEk‖Select a model from the list of all models in the current document.

AzV7w‖Binding

A5za2‖Select or enter the name of a binding. Selecting the name of an existing binding associates the binding with the form control. Entering a new name creates a new binding and associates it with the form control.

uUo72‖Binding expression

CNAQv‖Enter the DOM node to bind the control model to. Click the ... button for a dialog to enter the XPath expression.

mZuaw‖Required

3ZC7B‖Specifies if the item must be included on the XForm.

Pq63B‖Relevant

whCWt‖Declares the item as relevant.

stFvd‖Read-only

CVMa8‖Declares the item as read-only.

VX5oH‖Constraint

bbMHq‖Declares the item as a constraint.

QVQhe‖Calculation

JQtvz‖Declares that the item is calculated.

HzhX9‖Data type

PC3nF‖Select a data type which the control should be validated against.

dxzDo‖x

sbBvf‖Select a user-defined data type and click the button to delete the user-defined data type.

2oXwA‖+

MYuar‖Click the button to open a dialog where you can enter the name of a new user-defined data type. The new data type inherits all facets from the currently selected data type.

Note Icon

Suwnq‖The following lists all facets that are valid for data types. Some facets are only available for some data types.


MDsE2‖Whitespaces

V5GAw‖Specifies how whitespaces are to be handled when a string of the current data type is being processed. Possible values are "Preserve", "Replace", and "Collapse". The semantics follow the definition at https://www.w3.org/TR/xmlschema-2/#rf-whiteSpace.

EmBf7‖Pattern

GBqSw‖Specifies a regular expression pattern. Strings validated against the data type must conform to this pattern to be valid. The XSD data type syntax for regular expressions is different from the regular expression syntax used elsewhere in LibreOfficeDev, for example in the Find & Replace dialog.

rjLF5‖Digits (total)

iBuCE‖Specifies the maximum total number of digits that values of the decimal data type can have.

YxNjr‖Digits (fraction)

ADefS‖Specifies the maximum total number of fractional digits that values of the decimal data type can have.

LkwFf‖Max. (inclusive)

kJ4TM‖Specifies an inclusive upper bound for values.

F8kaH‖Max. (exclusive)

MvuEk‖Specifies an exclusive upper bound for values.

y33Fz‖Min. (inclusive)

ByUzo‖Specifies an inclusive lower bound for values.

KAFod‖Min. (exclusive)

VMVcm‖Specifies an exclusive lower bound for values.

ECCYL‖Length

E9wtV‖Specifies the number of characters for a string.

8cocU‖Length (at least)

GjiKj‖Specifies the minimum number of characters for a string.

YC8Lk‖Length (at most)

BoVs6‖Specifies the maximum number of characters for a string.