Versions Compared

Key

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

...

Panel
nameblue

Selectbox

This element is used to display a select box on the page.

Attributes

NameDescriptionValue
id

Unique Identifier.

Any
nameA name that describes the select boxThe selectbox name.Any
visiblemodesThe modes select box the selectbox should be visible.A comma-separated list of the modes (read / , new / , edit)
visibilityconditionsThe conditions that should be met in order to display the select boxselectbox.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
readonlyIf is true then select box cannot change value.true,falsetrue then the selectbox value cannot be changed.true or false
readonlyconditions

The conditions that should be met in order to display the selectbox in read only mode.

'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
datapathThe data path field name.Needs to correspond to the CRMDO object field.
datatypeThe type of datapath field.alias, load, java.lang.Integer, java.lang.String, ...
refreshThe parts of the page parts that should be refreshed when the select box changeselectbox value is changed.

page

mainmenu

main

details

tab,tabID

component,is_on_tab:is_on_menu:tabID:componentID

element,is_on_tab:is_on_menu:tabid:componentID:elementID

section,sectionID

area,areaID

  type 

      The type 'singleline' can be used to show all options in one line,  instead of one per row. 

 singleline 
lookuptypeThe type of lookup.fixed, dataset, ejb
lookupnameThe dataset name if the lookuptype is equals equal to dataset.

the The file path under the folder 'Crm/WebContent/pages/search'

alwayseditableselect boxes Selectboxes can be defined as always editable.true , or false
reload

If is set to true then it means that radio button the selectbox will be called on every refresh of the page. 

For lookuptype: dataset, ejb

true , or false
options

Defines the selectbox options of select box.

For lookuptype: fixed

 option1:option_label1;option2:option_label2;option3:option_label3

valueDefines the current value of select boxthe selectbox.'[[pagefunction, datatype, datapath ]]'
defaultvaluethe The default value to be assign on assigned to the datapath.anyAny
onload

Defines the function call triggered to load select boxthe selectbox.

For lookuptype: ejb

<function>…</function>
onchangeDefines the function call(s) triggered when select box the selectbox value is changed.<functions>…</functions>

   

Examples

...

Expand

...

title

...

Fixed

...

Radio button - true

Image Added

Code Block
themeEclipse
languagexml
title
Fixed
linenumbers
<selectbox>
	<readonlyconditions>'[[getAlias,java.lang.String,editDiscountSectionAllowed]]'=='0'</readonlyconditions>
	<tipexpression>key_determines_how_an_additive_discount_will_be_applied_in_relation_to_other_additive_discounts_that_might_also_be_applicable._level_stars_from_the_lowest_to_highest._the_percentage_of_auto_apply_discount_having_the_same_level_is_added_and_the_total_discount_percentage_is_applied.</tipexpression><id>1</id>
	<label>key_discount_level</label>
<reload>true</reload>
	<colspan>1</colspan>
	<width>20%</width>
	<type/>
	<lookuptype>fixed</lookuptype>
<datapath>effectiveDateType<
	<datapath>level</datapath>
<defaultvalue>NEW_CUSTOMER</defaultvalue> <options>BINDINGSTARTDATE:Binding start date;SERVICEEFFECTIVEDATE:Service effective date;AGREEMENTDATE:Agreement date/options> <refresh>page</refresh> <onchange> <functions> <function> <type>staticjs</type> <functionname>voidFunc</functionname> </function> </functions> </onchange> </selectbox>

 

 

Select box - Ejb lookup

Image Removed

Code Block
titleSelect box - ejb
linenumberstrue
<selectbox> <id>slbValidTo</id> <lookuptype>ejb</lookuptype> <datapath>validToType</datapath> <datatype>enum</datatype>
	<datatype>java.lang.Integer</datatype>
	<options>:key_select_level;1:1;2:2;3:3;</options>
	<reload>true</reload>
</selectbox>
Expand
titleEJB Lookup

Image Added

Code Block
themeEclipse
languagexml
titleEJB Lookup
<selectbox>
	<id>slbType</id>
	<label>key_type</label>
	<lookuptype>ejb</lookuptype>
	<datapath>type</datapath>
	<datapathid>id</datapathid>
	<classname>com.crm.dataobject.
products
financialtransactions.
ProductValidToType<
CRMDOFinancialTransactionType</classname>
	<datatype>load</datatype>
	<reload>true</reload>
<refresh>component,true:false:tabProductValidity:cmpValidTo<
	<refresh>page</refresh>
	<onload>
		<type>ejb</type>
		<classname>ejb/
CRMUIProduct<
CRMUIFinancialTransactionType</classname>
<functionname>getValidToTypeOptions<
		<functionname>getTypeOptions</functionname>
<parameters> <parameter> <value>null</value> </parameter> </parameters> </onload> <onchange> <functions> <function> <type>ejb</type> <classname>ejb/CRMUIProduct</classname> <functionname>resetValidToDate</functionname> <resultaction>replace</resultaction> <datatype>root</datatype> <parameters> <parameter> <value>[[getDTO]]</value> <datatype>java.lang.Object</datatype> </parameter> <parameter> <value>[[getValue,java.lang.String,validity[CURRENT_ROW]]]</value> <datatype>java.lang.Object</datatype> </parameter> </parameters> </function> </functions>
		<parameters>
			<parameter>
				<value>INVOICE</value>
				<datatype>java.lang.String</datatype>
			</parameter>
		</parameters>
	</onload>
	<onchange>
		<functions>
			<function>
				<type>staticjs</type>
				<functionname>voidFunc</functionname>
			</function>
		</functions>
	</onchange>
</selectbox>
Expand
titleSearch File Lookup
Image Added

 

Select box - Dataset lookup

Image Removed

Code Block
titleSelect box - dataset
linenumberstrue
<selectbox> <id>slbType</id> <lookuptype>dataset</lookuptype> <lookupname>products.loadtypes;prodtypeid;prodtypename;</lookupname> <datapath>type</datapath> <datapathid>id</datapathid>
Code Block
themeEclipse
languagexml
titleSearch File Lookup
<selectbox>
	<id>slbAddressCountry</id>
	<label>key_country</label>
	<lookuptype>dataset</lookuptype>
	<lookupname>platform.loadcountries;countryid;countryname;</lookupname>
	<datapath>selectedAddress/country</datapath>
	<datapathid>id</datapathid>
	<classname>com.crm.dataobject.
products
platform.
CRMDOProductType<
CRMDOCountry</classname>
	<datatype>load</datatype>
<reload>true<
	<reload>false</reload>
<refresh>page<
	<refresh>component,false:false:null:cmpCountry</refresh>
	<onchange>
<functions> <function> <type>staticjs</type> <functionname>voidFunc</functionname> </function> </functions>
		<functions>
			<function>
				<type>staticjs</type>
				<functionname>voidFunc</functionname>
			</function>
		</functions>
	</onchange>
</selectbox>
           

 

...