...
Panel | ||
---|---|---|
| ||
CheckboxThis element is used to display a check box on the page. |
Attributes
...
Name | Description | Value |
---|---|---|
id | Unique Identifier any. | Any |
label | A label that is positioned above the checkbox. | Any |
sidelabel | A label that is positioned on the right side of the checkbox | Any |
colspan | The number of columns the checkbox spans. The default value is 1. | numeric |
visiblemodes | The modes the button should checkbox will be visible. | A comma-separated list of the modes (read / , new / , edit) |
visibilityconditions | The conditions that should be met in order to display the component checkbox . | '[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value' |
readonlyconditions | The conditions that should be met in orderfro the checkbox to be readonly. | '[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value' |
readonly | If 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, ...) |
refresh | The 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 |
truevalue | the The value to be assign assigned on the datapath when the checkbox is checked. | anyAny |
falsevalue | the The value to be assign assigned on the datapath when the checkbox is not checked. | anyAny |
truelabel | the The label of checked of the checked checkbox in read mode. | anyAny |
falselabel | the The label of the non checked checkbox in read mode. | anyAny |
defaultvalue | the The default value to be assign assigned on the datapath. | any |
Examples
CheckBox
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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 | |
onchange | Defines the function call(s) triggered when the checkbox value changes. | <functions>…</functions> |
Example
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|