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 |
Form element only. True or False (Default is
False ). Set to True if the type corresponds to managed form (to
generate application code using records features like queries). If managed, the records in the form
are enabled by default, otherwise they cannot be used for Application Modeling. |
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>