File
The File
element defines the file type. Add one File
element for each new file type.
Syntax
<File>
<DynamicProperties>
<DynamicProperty/>
<DynamicPropertyGroup/>
</DynamicProperties>
<Items>
<Item/>
</Items>
</File>
Attributes
Attribute | Options |
---|---|
extension |
File extension. |
isManaged |
For <File> elements that are children of <Form> and
<Database> elements only. Set to Set to |
orderRecords |
For <File> elements that are children of
<BusinessRecord> or <Form> elements.Set to
Set to
|
Child elements
The File
element may contain the following child elements:
- One or more DynamicProperty and DynamicPropertyGroup elements, within one
DynamicProperties
element. - One or more Item elements, within one
Items
element.
Example - File elements representing a file type.
<File extension="4fdm" isManaged="true">
<DynamicProperties>
<DynamicProperty name="foreignFields" type="FIELDS"
label="foreignFields" initialValue=""
editorInfo="isDynamic:true" dynamicContent="srcFieldsContent"/>
<DynamicProperty name="primaryFields" type="FIELDS"
label="primaryFields" initialValue=""
editorInfo="isDynamic:true" dynamicContent="dstFieldsContent"/>
<DynamicPropertyGroup name="relations"
label="Relation"
description="Relation properties group"
properties="foreignFields;primaryFields"/>
<DynamicProperty name="canSearch" type="BOOLEAN"
label="canSearch" initialValue="true"
description="Allow search using Query By Example"/>
<DynamicProperty name="canAdd" type="BOOLEAN"
label="canAdd" initialValue="true"
description="Allow adding items"/>
<DynamicProperty name="canModify" type="BOOLEAN"
label="canModify" initialValue="true"
description="Allow modifying existing items"/>
<DynamicProperty name="canDelete" type="BOOLEAN"
label="canDelete" initialValue="true"
description="Allow deleting items"/>
<DynamicPropertyGroup name="functionality"
label="Functionality"
description="Functionality properties group"
properties="canAdd;canModify;canDelete;canSearch"/>
</DynamicProperties>
<Items>
<Item nodeName="Relation" srcProperty="foreignFields"
dstProperty="primaryFields"
dynamicProperties="primaryFields;foreignFields"/>
<Item nodeName="Record"
dynamicProperties="canAdd;canModify;canDelete;canSearch"/>
</Items>
</File>