Skip to end of metadata
-
Created by Former user, last modified by Former user on Oct 30, 2014
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 12
Next »
The fields XML files are XML files that describe all the fields and datapaths of their respective entity (i.e. the accountsreceivable.xml describes the AccountReceivable entity). By including these fields in these XML files, we are stating that the restrictions isEditable, isViewable, and isMandatory can be applied to them, and can be configured in the Security Profiles. In order to apply the restrictions at a field, the field's filename should be included in entities metadata file in the corresponding entity's <metadatafile> tag.
Name | Description | Value |
---|
mainfield | The main field of the entity. | Any field of the entity |
fields | An entity field. | Any field of the entity |
collections | An entity collection. | Any collection of the entity |
Metadata Fields
<entityfieldconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/fields.xsd">
<mainfield>
<id>number</id>
<name>Number</name>
<xpath>number</xpath>
<tag>accounts_receivable.number</tag>
<csrexcluded>true</csrexcluded>
<plarexcluded>true</plarexcluded>
<acrexcluded>true</acrexcluded>
</mainfield>
<fields>
<field>
<id>name</id>
<name>Name</name>
<xpath>name</xpath>
<tag>accounts_receivable.name</tag>
<csrexcluded>true</csrexcluded>
<plarexcluded>true</plarexcluded>
<acrexcluded>true</acrexcluded>
</field>
...
</fields>
<collections>
<collection>
<id>subscriptions</id>
<name>Account subscriptions</name>
<relatedentityxpath></relatedentityxpath>
<xpath>subscriptions</xpath>
<tag>accounts_receivable.subscription</tag>
<csrexcluded>true</csrexcluded>
<plarexcluded>true</plarexcluded>
<acrexcluded>true</acrexcluded>
<method>
<ejbname>CRMUIAccountReceivable</ejbname>
<methodname>loadSubscriptionsTab</methodname>
<parameters>
<parameter>
<xpath>[DTO]</xpath>
</parameter>
</parameters>
</method>
<mainfield>
<id>number</id>
<name>Subscription Number</name>
<relatedentityxpath></relatedentityxpath>
<xpath>number</xpath>
<tag>accounts_receivable.subscription.number</tag>
</mainfield>
<fields>
<field>
<id>type</id>
<name>Type</name>
<relatedentityxpath>type</relatedentityxpath>
<xpath>name</xpath>
<tag>accounts_receivable.subscription.type</tag>
</field>
...
</collection>
</collections>
</entityfieldconfig>
Name | Description | Value |
---|
id | Unique Identifier. | Any |
name | A name that describes the field. | Any |
xpath | The xpath field name. | Any |
relatedentityxpath | The name of the related entity as it's defined in data class of the main entity. | Any |
Fields
<entityfieldconfig>
<fields>
<field>
<id>number</id>
<name>Number</name>
<xpath>number</xpath>
</field>
<field>
<id>name</id>
<name>Name</name>
<xpath>name</xpath>
</field>
<field>
<id>type</id>
<name>Type</name>
<relatedentityxpath>type</relatedentityxpath>
<xpath>name</xpath>
</field>
...
</fields>
</entityfieldconfig>