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
Expand |
---|
|
Image Added Code Block |
---|
theme | Eclipse |
---|
language | xml |
---|
title |
---|
|
| Example |
collapse | true |
---|
<id>tabServices<<name>Services<<name>Allowed Categories</name>
| <datasourcesetkey>services<<datasourcesetkey>categories</datasourcesetkey>
<functioncall>
<functions>
<function>
| ...</function> <classname>ejb/CRMUIFinancialTransactionType</classname>
| < <functionname>loadCategoriesTab</ | functions>< <resultaction>setreplace</ | functioncall>resultaction>
<datapath>categories</datapath>
<datasortby>category/code,desc</datasortby>
<datasourcesetkey>categories</datasourcesetkey>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
</parameters>
| <tabmenu>
</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>
| <component>
<id>cmpAdd</id>
<name>Add</name>
<elements>
... <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<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>
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>
</ | component>components>tabmenu>component>
<component>
<id>cmpCategoryName</id>
<name>Name</name>
<elements>
<textbox>
<id>txtCategoryName</id>
<datapath>category/name</datapath>
<readonly>true</readonly>
</textbox>
</elements>
| <components>
<id>cmpProduct<<name>Product<<name>Path</name>
<elements>
<textbox>
| <id>txtProduct<<datapath>productcode<description</datapath>
<readonly>true</readonly>
</textbox>
</elements>
</component>
| ...
|
...