Description
...
Panel | ||
---|---|---|
| ||
Definition FileIn the definition file we define the components and tabs of the definition file.
|
Attributes
Name | Description | Value | |||
---|---|---|---|---|---|
id | Unique Identifier. | Any. | |||
name | The name of the data entry page. This is displayed as the title of the page. | Any. | |||
datapath | The paths of the identifiers of the displayed object. This is also part of the page's title. | The paths of the object properties that hold the values to be displayed. | |||
module | The identifier of the module the page belongs to. | Any of the module ids defined in the modules metadata file. | |||
functioncall | The methods that are called to load the datasource object. | Any functioncall that loads the datasource object. | |||
datasources | The types classes of the objects displayed on the page. | flowcontrol | The definition of the steps of a wizard page. | The list of the wizard steps. com.crm.web.generator.datasource.DTODatasource | |
mainmenu | The definition of the page's toolbar. | The list of components that will be displayed on the toolbar. | |||
main | The definition of the page's main area. | The list of components that will be displayed in the main area. | |||
details | The definition of the page's details area. | The list of tabs that will be displayed in the details area. |
Examples
Data entry page with a toolbar, a main area and a details area.
...
Example
Expand | |||||
---|---|---|---|---|---|
| |||||
| html/|||||
linenumbers | true | ||||
collapse | true | <page>
<id>fintranstypeDetailBody</id>
<name>Financial Transaction Type</name>
<datapath>name</datapath>
<datasources>
<datasource>
<key>form</key>
<classname>com.crm.web.generator.datasource.DTODatasource</classname>
</datasource>
</datasources>
<mainmenu>
<components>
<component/>
</components>
</mainmenu>
<main>
<components>
<component/>
<component/>
...
</components>
</main>
<details>
<tabs>
<tab>
<id>paymentMethods</id>
<name>Allowed Payment Methods</name>
<datasourcesetkey>...</datasourcesetkey>
<visibilityconditions>...</visibilityconditions>
<tipexpression>...</tipexpression>
<functioncall>
| Data entry page |
|
Wizard data entry page.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<page>
<id>orders/orderTakingDetailBody</id>
<name>Order Taking</name>
<datapath>order/number</datapath>
<datasources>
<datasource>
<key>form</key>
<classname>com.crm.web.generator.datasource.DTODatasource</classname>
</datasource>
</datasources>
<flowcontrol>
<messageonsuccess>Order taking created successfully.</messageonsuccess>
<linkoncomplete>Click here to go to order detail page|page.do?xml=orders/orderDetailBody&act=itm&jndi=ejb/CRMUIOrder&fc=loadForm&pv0=[[getValue,java.lang.String,order/id]]&pvc=1</linkoncomplete>
<completedmenucompid>cmdSave</completedmenucompid>
<flowsteps>
<flowstep>
<name>Customer Information</name>
<description>Please specify customer information.</description>
<visibletabs>CustomerInformation_Section</visibletabs>
<finishbutton>false</finishbutton>
<functioncall>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIOrder</classname>
<functionname>validateWizardOTNextButton</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
<parameter>
<value>0</value>
<datatype>java.lang.Integer</datatype>
</parameter>
</parameters>
</function>
</functions>
</functioncall>
</flowstep>
<flowstep>
<name>Order Main Information</name>
<description>Please specify Order main information</description>
<visibletabs>MainInformation</visibletabs>
<finishbutton>false</finishbutton>
<functioncall>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIOrder</classname>
<functionname>validateWizardOTNextButton</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
<parameter>
<value>1</value>
<datatype>java.lang.Integer</datatype>
</parameter>
</parameters>
</function>
</functions>
</functioncall>
</flowstep>
<flowstep>
<name>Delivery and Billing information</name>
<description>Please enter the delivery and billing information.</description>
<visibletabs>DeliveryInformation_Section</visibletabs>
<finishbutton>false</finishbutton>
<functioncall>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIOrder</classname>
<functionname>validateWizardOTNextButton</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
<parameter>
<value>2</value>
<datatype>java.lang.Integer</datatype>
</parameter>
</parameters>
</function>
</functions>
</functioncall>
</flowstep>
<flowstep>
<name>Payment Terms</name>
<description>Please enter the payment terms.</description>
<visibletabs>PaymentTermsSection_Section</visibletabs>
<finishbutton>false</finishbutton>
<functioncall>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIOrder</classname>
<functionname>validateWizardOTNextButton</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
<parameter>
<value>3</value>
<datatype>java.lang.Integer</datatype>
</parameter>
</parameters>
</function>
<function>
<type>ejb</type>
<classname>ejb/CRMUIOrder</classname>
<functionname>previewQuote</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
</parameters>
</function>
</functions>
</functioncall>
</flowstep>
<flowstep>
<name>Order Preview</name>
<description></description>
<visibletabs>CustomerInformation_Section;MainInformation;ResourcesSection_Section;InstalledItemItemsME_Section;DeliveryInformation_Section;PaymentTermsSection_Section;Quatation_Section</visibletabs>
<finishbutton>true</finishbutton>
<functioncall>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIOrder</classname>
<functionname>saveOrderTakingButton</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
</parameters>
</function>
</functions>
</functioncall>
</flowstep>
</flowsteps>
</flowcontrol>
<mainmenu>
<components>
<component> |