Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 14
Panel
nameblue

Definition Tab

This tag is used to specify tabs on the page.

Attributes

NameDescriptionValue
id

Unique Identifier

any
nameA name that describes the tab. It is used as the title of the tab.any
reloadIndicates if the tab should be reloaded every time is expanded.

true

false

datasourcesetkeyThe name of the set that holds the objects displayed in the tab as it is defined on the datasource object.property name
visibilityconditionsThe conditions that should be met in order to display the tab.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
tipexpressionThe tip message that should displayed near the tab's title.unique identifier | message
functioncallThe method that loads the objects displayed in the tab.a functioncall
tabmenuThe components that will be displayed in the tab's menu area.List of components
componentsThe components that will be displayed in the tab.List of components
displaydeletedSpecifies if the deleted rows should be also visible in the tab. By default they are not visible.

true

false

rowvisibilityconditionsThe conditions that should be met in order to display a row.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'

Example

...

javaExample
Expand
titleTab

Image Added

Code Block
themeEclipse
language
xml
title
Tab
collapsetrue
<tab>
	
<id>tabServices<
<id>tabCategories</id>
	
<name>Services<
<name>Allowed Categories</name>
	
<datasourcesetkey>services<
<datasourcesetkey>categories</datasourcesetkey>
	<functioncall>
		<functions>
			<function>
				
...
<type>ejb</type>
			
</function>
	<classname>ejb/CRMUIFinancialTransactionType</classname>
		
<
		<functionname>loadCategoriesTab</
functions>
functionname>
			
<
	<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>
				
...
<rowselector>
				
<
	<id>rowID</
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>
textbox>
			</
components>
elements>
		</
tabmenu>
component>
		<component>
			<id>cmpCategoryName</id>
			<name>Name</name>
			<elements>
				<textbox>
					<id>txtCategoryName</id>
					<datapath>category/name</datapath>
					<readonly>true</readonly>
				</textbox>
<components>
			</elements>
		</component>
		<component>
			
<id>cmpProduct<
<id>cmpCategoryPath</id>
			
<name>Product<
<name>Path</name>
			<elements>
				<textbox>
					
<id>txtProduct<
<id>txtCategoryPath</id>
					
<datapath>product
<datapath>category/
code<
description</datapath>
					<readonly>true</readonly>
				</textbox>
			</elements>
		</component>
...

	</components>
</tab>