Skip to end of banner
Go to start of banner

Fields metadata

Skip to end of metadata
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 23 Next »

In fields metadata file, we define the entity's fields metadata required by the application's core mechanisms such as the security restrictions, query language, collaboration rules and workflow mechanisms.

Attributes

NameDescriptionValueApplicable for

id

Unique Identifier.

Anyfield, mainfield, collection
nameA name that describes the main field/collection.Anyfield, mainfield, collection
xpathThe xpath main field/collection name.Anyfield, mainfield, collection
relatedentityxpathThe path of the related entity (if one exists).Any valid entityfield, mainfield, collection
methodThe method that will be used to set the field's value.Any valid method namefield, mainfield, collection
tagThe tag that will be used to refer to this field in query language and communication texts.The path of the valuefield, mainfield, collection
csrexcludedIndicates if the field should be excluded from the conditional security restrictions mechanism.true, falsefield, mainfield, collection
plarexcludedIndicates if the field should be excluded from the privacy level assignment rules.true, falsefield, mainfield, collection
acrexcludedIndicates if the field should be excluded from the added conditional restrictions.true, falsefield, mainfield, collection
audittrailexcludedIndicates if the field should be excluded from the audit trailed fields.true, falsefield, mainfield, collection
mainfield

The main field of the collection.

Any field of the collectioncollection
fieldA collection field.Any field of the collectioncollection
sqlThe SQL statement.Any SQL statementfield, mainfield, collection

qlfieldname

The query language field name used in segmentsThe name of the valuefield,mainfield, collection
qlfilterSQL conditions, that the collection that are added to, will be filtered out by, when retrieved by a segmentAny valid SQL criterionfield,mainfield, collection
segmentpreviewname  field,mainfield, collection
workflowruleactionincludedIndicates if the entity should be included in workflow rule actions.true or falsefield,mainfield, collection
workflowruleconditionincludedIndicates if the entity should be included in workflow rule conditions and in which condition type to be selected
The name of the condition typefield,mainfield, collection
typeThe type of the fieldAny valid typefield,mainfield, collection

Attributes

NameDescriptionValueApplicable for
mainfield

The main field of the entity.

Any field of the entity 
fieldAn entity field.Any field of the entity 
collectionAn entity collection.Any collection of the entity 

Example

 Metadata Fields
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>
 		
		<field>
			<id>type</id>
            <name>Type</name>
            <relatedentityxpath>type</relatedentityxpath>
            <xpath>name</xpath>
            <qlfieldname>activity.type</qlfieldname>
            <tag>activity.type</tag>
            <csrexcluded>false</csrexcluded>
            <plarexcluded>true</plarexcluded>
            <acrexcluded>true</acrexcluded>
            <audittrailexcluded>true</audittrailexcluded>
            <workflowruleactionincluded>false</workflowruleactionincluded>
            <workflowruleconditionincluded>FIELD_CONTAINS_VALUE</workflowruleconditionincluded> 
            <type>com.crm.dataobject.activities.CRMDOActivityType</type>
        </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>
  • No labels