Skip to end of banner
Go to start of banner

Component

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 17 Next »

Component

This tag is used to define a component on the page. A component consists of multiple elements.

Attributes

NameDescriptionValue
id

Unique Identifier

any
nameA name that describes the componentany
isgroupBoolean that specifies if the component will be displayed as a group of multiple elements.

true

false
visibilityconditionsThe conditions that should be met in order to display the component.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
isgroupIf it is set to true then the component is displayed as a group of elements. the name of the component appears as the title of the group.

true

false
allowcollapseIf the component is defined as group and this value is set to true then the user can collapse/expand the component by clicking the title of the group.

true

false
defaultcollapsedIf the component is defined as group and this value is set to true then the group of elements is by default collapsed.

true

false
elementsThe elements of the component.List of elements.
quickcreateIf it is set to true then the component is displayed in "quick create" mode.

true

false
excludefrommodalIf it is set to true then the component is not displayed when the page is opened in a modal window.

true

false
autorefreshinsecondsAutomatically refresh component after the seconds specified.Number of seconds - integer

Example

 Component

Layout
<component><id>cmpType</id></component>
Definition
<component>
	<id>cmpType</id>
	<name>Type</name>
	<elements>
		<label>
			<id>lblType</id>
			<value>Type</value>
		</label>
		<selectbox>
			<id>slbType</id>
			<lookuptype>dataset</lookuptype>
			<lookupname>products.loadtypes;prodtypeid;prodtypename;</lookupname>
			<datapath>type</datapath>
			<datapathid>id</datapathid>
			<classname>com.crm.dataobject.products.CRMDOProductType</classname>
			<datatype>load</datatype>
			<reload>true</reload>
			<refresh>page</refresh>
			<onchange>
				<functions>
					<function>
						<type>staticjs</type>
						<functionname>voidFunc</functionname>
					</function>
				</functions>
			</onchange>
		</selectbox>
	</elements>
</component>
  • No labels