資料 (針對 XML 表單文件)

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

若要使用此指令...

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

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


控制項的 [資料] 標籤頁上所能進行的設定,視各控制項而定。所能看見的僅限於目前控制項與上下文所適用的選項。可用欄位如下:

XML 資料模型

從目前文件中所有模型清單中選取模型。

連結

選取或輸入連結名稱。選取現存的連結名稱後,連結即會與表單控制項產生關聯。輸入新名稱可建立新的連結,並使其與表單控制項產生關聯。

連結表示式

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

必要

指定 XForm 是否必須包含此項目。

相關的

宣告項目為相關。

唯讀

宣告項目為唯讀。

限制

宣告項目為限制。

計算

宣告已計算項目。

資料類型

選取控制項據以進行驗證的資料類型。

x

選取使用者定義的資料類型,然後按一下按鈕加以刪除。

+

按一下按鈕開啟對話方塊,以輸入新的使用者定義資料類型名稱。新的資料類型會繼承目前所選資料類型的所有平面。

評註圖示

以下列出所有適用於資料類型的平面。有些平面僅適用於部分資料類型。


空白

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.

樣式

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 LibreOffice, for example in the Find & Replace dialog.

位數 (總數)

指定十進位資料類型值所能擁有的總位數上限。

位數 (分數)

指定十進位資料類型值所能擁有的小數位數總數上限。

最大 (包含)

指定值的上限 (包含該值)。

最大 (不包含)

指定值的上限 (不含該值)。

最小 (包含)

指定值的下限 (包含該值)。

最小 (不包含)

指定值的下限 (不含該值)。

長度

指定字串的字元數。

長度 (至少)

指定字串的字元數下限。

長度 (最多)

指定字串的字元數上限。

Please support us!