Versions Compared

Key

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

...

NameDescriptionValue
id

Unique Identifier

any
nameA name that describes the list.any glossary key
reloadIndicates if the tab list should be reloaded every time is expanded.

true

false

datasourcesetkeyThe name of the set that holds the objects displayed in the list as it is defined on the datasourceobject.property name
visibilityconditionsThe conditions that should be met in order for the list to be visible.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
tipexpressionrowvisibilityconditionsThe tip message conditions that will be displayed near the list's title.unique identifier | messageshould be met in order for a list row to be visible.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
functioncallThe method that loads the objects displayed in the tablist.afunctioncall
tabmenuThe components that will be displayed in the tablist's menu area.List of components
componentsThe components that will be displayed in the tablist.List of components
displaydeletedSpecifies if the deleted rows should be also visible in the tab. Bydefaultthey 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

 

Code Block
themeEclipse
languagexml
titleTab
<list>
	<id>listSpendRequestRules</id>
	<name>key_spend_request_rules</name>
	<reload>true</reload>
	<datasourcesetkey>processingRules</datasourcesetkey>
	<rowvisibilityconditions>
		'[[getValue,java.lang.String,processingRules[CURRENT_ROW]/processingRuleType]]'=='SPEND_REQUEST_RULE' 
	</rowvisibilityconditions>
	<functioncall>
		<functions>
		</functions>
	</functioncall>
	<tabmenu>
		<components>
			<component>
				<id>cmpAdd</id>
				<name>key_add</name>
				<visiblemodes>edit,new</visiblemodes>
				<elements>
					<button>
						<id>btnAdd</id>
						<name>key_add</name>
						<refresh>tab,listSpendRequestRules</refresh>
						<functioncall>
							<functions>
								<function>
									<type>ejb</type>
									<classname>ejb/CRMUICustomerEventDefinition</classname>
									<functionname>addSpendRequestRuleButton</functionname>
									<datasourcesetkey>processingRules</datasourcesetkey>
									<resultaction>setappend</resultaction>
									<parameters>
										<parameter>
											<value>[[getDTO]]</value>
											<datatype>java.lang.Object</datatype>
										</parameter>
									</parameters>
								</function>
							</functions>
						</functioncall>
					</button>
				</elements>
			</component> 
			<component>
				<id>cmpRemove</id>
				<name>key_remove</name>
				<visiblemodes>edit,new</visiblemodes>
				<elements>
					<button>
						<id>btnRemove</id>
						<name>key_remove</name>
						<refresh>tab,listSpendRequestRules</refresh>
						<functioncall>
							<functions>
								<function>
									<type>ejb</type>
									<classname>ejb/CRMUICustomerEventDefinition</classname>
									<functionname>removeSpendRequestRuleButton</functionname>
									<datasourcesetkey>processingRules</datasourcesetkey>
									<resultaction>setdelete</resultaction>
									<parameters>
										<parameter>
											<value>[[getSelectedDTOs,java.lang.String,processingRules]]</value>
											<datatype>java.lang.Object</datatype>
										</parameter>
									</parameters>
								</function>
							</functions>
						</functioncall>
					</button>
				</elements>
			</component>
		</components>
	</tabmenu>
	<header>
		<id>txtHeader</id>
		<datapath>spendRequestRule/ruleName</datapath>
	</header>
	<subheader>
	</subheader>
	<components>
		<component>
			<id>cmpAllowCreatingSpendRequestsForSpecificAmount</id>
			<name>key_allow_creating_spend_requests_for_specific_amount</name>
			<elements>
				<checkbox>
					<sidelabel>key_allow_creating_spend_requests_for_specific_amount</sidelabel>
					<id>chkAllowCreatingSpendRequestsForSpecificAmount</id>
					<datapath>spendRequestRule/allowCreatingSpendRequestsForSpecificAmount</datapath>
					<truevalue>1</truevalue>
					<falsevalue>0</falsevalue>
					<truelabel>key_yes</truelabel>
					<falselabel>key_no</falselabel>
					<refresh>tab,listSpendRequestRules</refresh>
					<onchange>
						<functions>
							<function>
								<type>staticjs</type>
								<functionname>voidFunc</functionname>
							</function>
						</functions>
					</onchange>
				</checkbox>		
			</elements>		
		</component>
		<component>
			<id>cmpMinSpendRequestAmount</id>
			<name>key_minimum_spend_request_amount</name>
			<elements>
				<textbox>
					<visibilityconditions>'[[getValue,java.lang.String,processingRules[CURRENT_ROW]/spendRequestRule/allowCreatingSpendRequestsForSpecificAmount]]'=='1'</visibilityconditions>
					<label>key_minimum_spend_request_amount</label>
					<id>txtMinSpendRequestAmount</id>
					<datapath>spendRequestRule/minSpendRequestAmount</datapath>
					<datatype>java.math.BigDecimal</datatype>
					<width>30%</width>
				</textbox>
			</elements>
		</component>
		<component>
			<id>cmpMaxSpendRequestAmount</id>
			<name>key_maximum_spend_request_amount</name>
			<elements>
				<textbox>
					<visibilityconditions>'[[getValue,java.lang.String,processingRules[CURRENT_ROW]/spendRequestRule/allowCreatingSpendRequestsForSpecificAmount]]'=='1'</visibilityconditions>
					<label>key_maximum_spend_request_amount</label>
					<id>txtMaxSpendRequestAmount</id>
					<datapath>spendRequestRule/maxSpendRequestAmount</datapath>
					<datatype>java.math.BigDecimal</datatype>
					<width>30%</width>
					<leftsidelabel>[SESSION]/generalSettings/defaultCurrency/prefix</leftsidelabel>
				</textbox>
			</elements>
		</component>
		<component>
			<id>cmpRejectSpendRequestsIfTheRequestedSpendAmountIsNotCovered</id>
			<name>key_reject_spend_requests_if_the_requested_spend_amount_is_not_covered</name>
			<elements>
				<checkbox>
					<sidelabel>key_reject_spend_requests_if_the_requested_spend_amount_is_not_covered</sidelabel>
					<id>chkRejectSpendRequestsIfTheRequestedSpendAmountIsNotCovered</id>
					<datapath>spendRequestRule/rejectSpendRequestsIfTheRequestedSpendAmountIsNotCovered</datapath>
					<truevalue>1</truevalue>
					<falsevalue>0</falsevalue>
					<truelabel>key_yes</truelabel>
					<falselabel>key_no</falselabel>
				</checkbox>		
			</elements>		
		</component>
		<component>
			<id>cmpApplicableClassifications</id>
			<name>key_applicable_classifications</name>
			<elements>
				<drilldown>
					<id>ddApplicableClassifications</id>
					<tabid>tabApplicableClassifications</tabid>
				</drilldown>
			</elements>
		</component>
	</components>
</list>