...
Panel |
---|
|
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? |
Components
All generic components are under Crm/WebContent/pages/dataEntry/lib/components directory.
To use a generic component, you have to:
- Use file:<foldername>/<filename>.xml, as its component id in the data entry layout file.
- Make sure your data object's Java property name match the datapath(s) used by the generic component.
Ui expand |
---|
|
Code Block |
---|
title | anypagelayout.xml |
---|
collapse | true |
---|
| ...
<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:
- Use file:<foldername>/<filename>.xml, as its tab id in the data entry layout file
- Use its tab id for the drilldown element in the data entry definition file.
- Use the tab component id(s) as defined in the generic tab file.
- Make sure your data object's Java property name match the datapaths used by the generic tab.
Ui expand |
---|
|
Code Block |
---|
title | anypage.xml |
---|
collapse | true |
---|
| <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 |
---|
title | anypagelayout.xml |
---|
collapse | true |
---|
| ...
<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 |