Versions Compared

Key

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


Panel
nameidblue0

Components commonly used in the system are implemented as generic components and can be referred to instead of re-implemented.

 


What does this section cover?

Table of Contents

Components

All generic components are under Crm/WebContent/pages/dataEntry/lib/components directory.

To use a generic component, you have to use:

  1. Use file:<foldername>/<filename>.xml, as its component id in the data entry layout file.

...

  1. Make sure your data object's Java property name match the datapath(s) used by the generic component.
Ui expand
titlecontactinfo/contactInformationExample


Code Block
titleanypagelayout.xml
collapsetrue
...
<section>
	<id>secContactInformation</id>
	<name>key_contact_information</name>
	<disable>false</disable>
	<left>
		<components>
			<component>
				<id>file:contactinfo/contactInformation.xml</id>
			</component>
		</components>
	</left>
</section>
...

Image Added

Tabs

All generic tabs are under Crm/WebContent/pages/dataEntry/lib/tabs  directory.

To use a generic tab, you have to:

  1. Use file:<foldername>/<filename>.xml, as its tab id in the data entry layout file
  2. Use its tab id for the drilldown element in the data entry definition file.
  3. Use the tab component id(s) as defined in the generic tab file.
  4. Make sure your data object's Java property name match the datapaths used by the generic tab.
Ui expand
titleExample


Code Block
titleanypage.
Image Removed
xml
collapsetrue
<main>
	<components>
		<component>
				<id>cmpAttachmentsDrilldown</id>
				<name>key_attachments</name>
				<elements>
					<drilldown>
						<id>ddAttachments</id>
						<tabid>tabAttachments</tabid>
					</drilldown>
				</elements>
			</component>
	</components>
</main>


Code Block
titleanypagelayout.xml
collapsetrue
...
<details>
	<tab>
		<id>file:general/attachments.xml</id>
		<disable>true</disable>
		<preload>true</preload>
		<showheader>false</showheader>
		<components>
			<component><id>cmpSelect</id></component>
			<component><id>cmpAttachment</id></component>
			<component><id>cmpComments</id></component>
			<component><id>cmpViewComments</id></component>
		</components>
	</tab>
	...
</details>
...

Image Added