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 14
Next »
This tag is used to specify tabs on the page.
Attributes
Name | Description | Value |
---|
id | Unique Identifier | any |
name | A name that describes the tab. It is used as the title of the tab. | any |
reload | Indicates if the tab should be reloaded every time is expanded. | true false |
datasourcesetkey | The name of the set that holds the objects displayed in the tab as it is defined on the datasource object. | property name |
visibilityconditions | The conditions that should be met in order to display the tab. | '[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value' |
tipexpression | The tip message that should displayed near the tab's title. | unique identifier | message |
functioncall | The method that loads the objects displayed in the tab. | a functioncall |
tabmenu | The components that will be displayed in the tab's menu area. | List of components |
components | The components that will be displayed in the tab. | List of components |
displaydeleted | Specifies if the deleted rows should be also visible in the tab. By default they are not visible. | true false |
rowvisibilityconditions | The conditions that should be met in order to display a row. | '[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value' |
Example
Tab
<tab>
<id>tabCategories</id>
<name>Allowed Categories</name>
<datasourcesetkey>categories</datasourcesetkey>
<functioncall>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIFinancialTransactionType</classname>
<functionname>loadCategoriesTab</functionname>
<resultaction>setreplace</resultaction>
<datapath>categories</datapath>
<datasortby>category/code,desc</datasortby>
<datasourcesetkey>categories</datasourcesetkey>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
</parameters>
</function>
</functions>
</functioncall>
<tabmenu>
<components>
<component>
<id>cmpAdd</id>
<name>Add</name>
<visiblemodes>edit,new</visiblemodes>
<elements>
<modal>
<id>mdlAdd</id>
<name>Add</name>
<type>treesearch</type>
<refresh>tab,tabCategories</refresh>
<setmode>edit</setmode>
<datasetname>financialtransactions.categories</datasetname>
<assignments>
<assignment>
<datapath>modal</datapath>
<datatype>alias</datatype>
</assignment>
</assignments>
<onclosefunction>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIFinancialTransactionType</classname>
<functionname>addCategoryButton</functionname>
<datasourcesetkey>categories</datasourcesetkey>
<datasortby>category/code,desc</datasortby>
<resultaction>setappend</resultaction>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
<parameter>
<value>[[getAlias,java.lang.String,modal]]</value>
<datatype>java.util.ArrayList</datatype>
</parameter>
<parameter>
<value>null</value>
</parameter>
</parameters>
</function>
</functions>
</onclosefunction>
</modal>
</elements>
</component>
<component>
<id>cmpRemove</id>
<name>Remove</name>
<visiblemodes>edit,new</visiblemodes>
<elements>
<button>
<id>btnRemove</id>
<name>Remove</name>
<refresh>tab,tabCategories</refresh>
<functioncall>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIFinancialTransactionType</classname>
<functionname>removeCategoryButton</functionname>
<datasourcesetkey>categories</datasourcesetkey>
<resultaction>markdeleted</resultaction>
<parameters>
<parameter>
<value>[[getSelectedDTOs,java.lang.String,categories]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
</parameters>
</function>
</functions>
</functioncall>
</button>
</elements>
</component>
</components>
</tabmenu>
<components>
<component>
<id>cmpSelect</id>
<name></name>
<elements>
<rowselector>
<id>rowID</id>
<datapath>id</datapath>
</rowselector>
</elements>
</component>
<component>
<id>cmpCode</id>
<name>Code</name>
<elements>
<textbox>
<id>txtCode</id>
<datapath>category/code</datapath>
<readonly>true</readonly>
</textbox>
</elements>
</component>
<component>
<id>cmpCategoryName</id>
<name>Name</name>
<elements>
<textbox>
<id>txtCategoryName</id>
<datapath>category/name</datapath>
<readonly>true</readonly>
</textbox>
</elements>
</component>
<component>
<id>cmpCategoryPath</id>
<name>Path</name>
<elements>
<textbox>
<id>txtCategoryPath</id>
<datapath>category/description</datapath>
<readonly>true</readonly>
</textbox>
</elements>
</component>
</components>
</tab>