Versions Compared

Key

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

Metadata Fields

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.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.

 

What does this section cover?

Child pages (Children Display)

Attributes

...

NameDescriptionValue
mainfield

The main field of the entity.

Any field of the entity
fieldsAn entity field.Any field of the entity
collectionsAn entity collection.Any collection of the entity

Example

...

Contains the fields of the entity and their metadata informationA list of entity fields
collectionsContains the collections of the entity and their metadata informationA list of entity collections

Example

<entityfieldconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/fields.xsd">
Code Block
themeEclipse
languagexml
title
Metadata Fields
rentals.xml
collapsetrue
<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<
<segmentpreviewname>ENTITYNUMBER</
csrexcluded>
segmentpreviewname>
	
<plarexcluded>true</plarexcluded> <acrexcluded>true</acrexcluded>
</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>
<xpath>name</xpath>
			
<csrexcluded>true</csrexcluded>
<workflowruleconditionincluded>FIELD_CONTAINS_VALUE</workflowruleconditionincluded>
		
<plarexcluded>true</plarexcluded> <acrexcluded>true</acrexcluded>
</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</tag> <csrexcluded>true</csrexcluded> <plarexcluded>true</plarexcluded> <acrexcluded>true</acrexcluded>
items</qlfieldname>
			<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.
subscription
items.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.
subscription
items.
type<
product_code</
tag>
qlfieldname>
				</field>
		
		
...
 

			</
collection> </collections> </entityfieldconfig>

Main Field

NameDescriptionValue

id

Unique Identifier.

Any
nameA name that describes the main field.Any
xpathThe xpath main field name.Any
tag  
csrexcluded true or false
plarexcluded true or false
acrexcluded true or false

Example

Expand
titleMain Field
Code Block
themeEclipse
languagexml
titleMain Field
<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>

 

 

 

 

 

NameDescriptionValue
id

Unique Identifier.

Any
nameA name that describes the field.Any
xpathThe xpath field name.Any
relatedentityxpathThe name of the related entity as it's defined in data class of the main entity.Any

Example

<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>
fields>
		</collection>
	</collections>
</entityfieldconfig>
Expand
titleFields
Code Block
themeEclipse
languagexml
titleFields