Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Expand
titleTab

Image RemovedImage Added

Code Block
themeEclipse
languagexml
titleTab
<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>