Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Expand
titleMetadata Fields
Code Block
themeEclipse
languagexml
titleMetadata Fields
<entityfieldconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/fields.xsd"><entityfieldconfig>
	<mainfield>
		<id>number<<id>custom_number</id>
		<name>Number<<name>key_number</name>
		<xpath>number</xpath>
		<tag>accounts_receivable<qlfieldname>rental.number</tag>qlfieldname>
		<csrexcluded>true</csrexcluded>
		<plarexcluded>true</plarexcluded>
		<acrexcluded>true</acrexcluded><segmentpreviewname>ENTITYNUMBER</segmentpreviewname>
	</mainfield>
		
	<fields>
		<field>
			<id>name<<id>custom_type</id>
			<name>Name<<name>key_type</name>
			<xpath>name<<relatedentityxpath>type</xpath>relatedentityxpath>
			<tag>accounts_receivable.name</tag>
			<csrexcluded>true</csrexcluded>
			<plarexcluded>true</plarexcluded>
			<acrexcluded>true</acrexcluded>The 
		</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>
            <xpath>name</xpath>
			<workflowruleconditionincluded>FIELD_CONTAINS_VALUE</workflowruleconditionincluded>

            <type>com.crm.dataobject.activities.CRMDOActivityType</type>
        		</field>
		...
 
	</fields>
 		
	<collections>
		<collection>
			<id>subscriptions<<id>custom_items</id>
			<name>Account subscriptions<<name>key_items</name>
			<relatedentityxpath><<relatedentityxpath/relatedentityxpath>>
			<xpath>subscriptions<<xpath>items</xpath>
			<tag>accounts_receivable<qlfieldname>rental.subscription<items</tag>qlfieldname>
			<csrexcluded>true</csrexcluded>
			<plarexcluded>true</plarexcluded>
			<acrexcluded>true</acrexcluded>
			<method>
				<ejbname>CRMUIAccountReceivable<<ejbname>CUSTOMCRMUIRental</ejbname>
				<methodname>loadSubscriptionsTab<<methodname>loadItemsTab</methodname>
				<parameters>
					<parameter>
						<xpath>[DTO]</xpath>
					</parameter>
				</parameters>
			</method>
			<mainfield>
				<id>number<<id>custom_serialNumber</id>
				<name>Subscription Number<<name>key_serialNumber</name>
				<relatedentityxpath><<relatedentityxpath>installedItem</relatedentityxpath>
				<xpath>number<<xpath>altCode</xpath>
				<tag>accounts_receivable<qlfieldname>rental.subscriptionitems.serial_number</tag>qlfieldname>
			</mainfield>
			<fields>
				<field>
					<id>type<<id>custom_code</id>
					<name>Type<<name>key_product_code</name>
					<relatedentityxpath>type<<relatedentityxpath>installedItem</relatedentityxpath>
					<xpath>name<<xpath>product/code</xpath>
					<tag>accounts_receivable<qlfieldname>rental.subscriptionitems.type<product_code</tag>qlfieldname>
				</field>
				...
				...
 
	</fields>
		</collection>
	</collections>
</entityfieldconfig>