Versions Compared

Key

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

...

Panel
nameblue

Checkbox

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

Attributes

...

NameDescriptionValue
id

Unique Identifier

any

.

Any
labelA label that is positioned above the checkbox.Any
sidelabelA label that is positioned on the right side of the checkboxAny
colspanThe number of columns the checkbox spans. The default value is 1.numeric
visiblemodesThe modes the button should checkbox will be visible.A comma-separated list of the modes (read / , new / , edit)
visibilityconditionsThe conditions that should be met in order to display the component checkbox .'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
readonlyconditionsThe conditions that should be met in orderfro the checkbox to be readonly.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
readonlyIf is true then the checkbox is in read mode , and the user cannot change the value.true ,or false
datapath The data path field name.Needs to correspond to the CRMDO object field.
datatype The type of datapath field (.java.lang.Integer, java.lang.String, ...)
refreshThe parts of the page that should be refreshed when the checkbox is clicked.

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

truevaluethe The value to be assign assigned on the datapath when the checkbox is checked.anyAny
falsevaluethe The value to be assign assigned on the datapath when the checkbox is not checked.anyAny
truelabelthe The label of checked of the checked checkbox in read mode.anyAny
falselabelthe The label of the non checked checkbox in read mode.anyAny
defaultvaluethe The default value to be assign assigned on the datapath.any

 

                      

Examples

CheckBox

Image RemovedImage Removed 

Code Block
languagehtml/xml
titleTab
linenumberstrue
<checkbox>
    <id>chkApplyRounding</id>
    <datapath>applyRounding</datapath>
    <truevalue>1</truevalue>
    <falsevalue>0</falsevalue>
    <truelabel>Yes</truelabel>
    <falselabel>No</falselabel>
    <refresh>page</refresh>
    <onchange>
        <functions>
            <function>
                <type>staticjs</type>
                <functionname>voidFunc</functionname>
            </function>
        </functions>
    </onchange>
</checkbox>           

 

.Any
onchangeDefines the function call(s) triggered when the checkbox value changes.<functions>…</functions>

Example

Expand
titleCheckbox
Image Added

 

Code Block
themeEclipse
languagexml
titleCheckbox
<checkbox>
	<id>uniquePersonName</id>
	<label></label>
	<sidelabel>Name</sidelabel>
	<datapath>uniquePersonName</datapath>
	<datatype>java.lang.Integer</datatype>
	<truevalue>1</truevalue>
	<falsevalue>0</falsevalue>
	<truelabel>Yes</truelabel>
	<falselabel>No</falselabel>
</checkbox>