Data Entry Pages Documentation
- Vasilis Kleanthous (Unlicensed)
- Former user (Deleted)
Owned by Vasilis Kleanthous (Unlicensed)
Data Entry Pages Documentation
A data entry page is made up of 2 XML files. The layout file and the definition file. In the layout file we determine where to display components and tabs on the screen, and in the definition file we define these components and tabs.
Example
Data Entry Page
Data Entry Page Layout
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/dataEntryLayout.xsd"> <mainmenu> <components> <component><id>cmpHome</id></component> ... </components> </mainmenu> <main> <view> <type>areas</type> <screenareas> <screenarea> <leftscreenarea> <sections> <section><id>secMainInformation</id></section> ... </sections> </leftscreenarea> </screenarea> ... </screenareas> </view> <sections> <section> <id>secMainInformation</id> <name>Main Information</name> <disable>false</disable> <left> <components> <component><id>file:general/code.xml</id></component> ... </components> </left> </section> </sections> </main> <details> <view>default</view> <defaulttabid>tabComponents</defaulttabid> <tabs> <tab> ... </tab> </tabs> </details> </page>
Data Entry Definition
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/dataEntry.xsd"> <id>products/product</id> <name>Product</name> <datapath>code</datapath> <module>PRODUCTS</module> <functioncall> <functions> <function> </function> </functions> </functioncall> <datasources> <datasource> <key>form</key> <classname>com.crm.web.generator.datasource.DTODatasource</classname> </datasource> </datasources> <mainmenu> <components> <component> <id>cmpHome</id> <name>Home</name> <visiblemodes>read</visiblemodes> <elements> <button> <id>btnHome</id> <name>Home</name> <setmode>read</setmode> <refresh>page</refresh> <url>page.do?xml=products/products&act=summary</url> </button> </elements> </component> ... </components> </mainmenu> <main> <components> <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> ... </components> </main> <details> <tabs> <tab> ... </tab> </tabs> </details> </page>