Versions Compared

Key

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

...

NameDescriptionValue
id

Unique Identifier

any
name  
visiblemodesThe modes select box 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 box.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
readonlyIf is true then select box cannot change value.true,false
datapathThe data path field nameNeeds to correspond to the CRMDO object field.
datatypeThe type of datapath fieldjava.lang.Integer, java.lang.String,...
refreshThe page parts that should be refreshed when the select box change.

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 lookupfixed, dataset, ejb
lookupnameThe dataset name if lookuptype is equals to dataset

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

alwayseditableselect boxes can be defined as always editabletrue, false
reload

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

For lookuptype: dataset, ejb

true, false
options

Defines the options of select box.

For lookuptype: fixed

 option1:option_label1;option2:option_label2;option3:option_label3

valueDefines the current value of select box'[[pagefunction, datatype, datapath ]]'
defaultvaluethe default value to be assign on datapath.any
onload

Defines the function call triggered to load select box.

For lookuptype: ejb

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

   

Examples

 

 

Radio button - Fixed

Image Added

Code Block
titleRadio button - Fixed
linenumberstrue
<radiobutton>
    <reload>true</reload>
    <lookuptype>fixed</lookuptype>
    <datapath>contactInformationOption</datapath>
    <datatype>alias</datatype>
    <defaultvalue>NEW_CUSTOMER</defaultvalue>
    <options>NEW_CUSTOMER:New Customer;EXISTING_CUSTOMER:Existing Customer</options>
    <type>singleline</type>
    <refresh>component,false:false:null:customerInformation;component,false:false:null:accountInformation;component,false:false:null:billingAddress</refresh>
    <onchange>
                <functions>
            <function>
                <type>ejb</type>
                <classname>ejb/CRMUISubscriptionAction</classname>
                <functionname>constructContact</functionname>
                <resultaction>fieldreplace</resultaction>
                <datapath>contactInformation</datapath>
                <parameters>
                </parameters>
            </function>
        </functions>
    </onchange>
</radiobutton> 

 

 

Radio button - Ejb lookup

Image Added

Code Block
titleRadio button - ejb
linenumberstrue
<radiobutton>
    <id>rdbCompositionMethod</id>
    <visiblemodes>edit,new,read</visiblemodes>
    <datapath>type/compositionMethod</datapath>
    <datatype>enum</datatype>
    <classname>com.crm.dataobject.products.CompositionMethod</classname>
    <lookuptype>ejb</lookuptype>
    <defaultvalue>FLAT</defaultvalue>
    <reload>true</reload>
    <readonly>true</readonly>
    <refresh>page</refresh>
    <onload>
        <type>ejb</type>
        <classname>ejb/CRMUIProductType</classname>
        <functionname>getCompositionMethodOptions</functionname>
    </onload>
    <onchange>
        <functions>
            <function>
                <type>staticjs</type>
                <functionname>voidFunc</functionname>
            </function>
        </functions>
    </onchange>
</radiobutton>

 

Radio button - Dataset lookup

Image Added

Code Block
titleRadio button - dataset
linenumberstrue
<radiobutton>
    <id>rdbCompositionMethod</id>
    <visiblemodes>edit,new,read</visiblemodes>      
    <type></type>
    <lookuptype>dataset</lookuptype>
    <lookupname>products.loadbrands;prodbrandid;prodbrandname</lookupname>
    <datapath>brand</datapath>    
    <datapathid>id</datapathid>
    <reload>true</reload>
    <readonly>true</readonly>
    <refresh>page</refresh>
    <onchange>
        <functions>
            <function>
                <type>staticjs</type>
                <functionname>voidFunc</functionname>
            </function>
        </functions>
    </onchange>
</radiobutton>