...
Name | Description | Value |
---|---|---|
id | Unique Identifier | any |
name | A name that describes the Text box. | Any |
visiblemodes | The modes the button should be visible. | A comma-separated list of the modes read / new / edit |
visibilityconditions | The conditions that should be met in order to display the Text box. | '[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value' |
readonly | If is true then text box cannot change value. | true,false |
readonlyconditions | The conditions that should be met in order to display the text box in read only mode. | '[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value' |
datapath | The data path field name | Needs to correspond to the CRMDO object field. |
datatype | The type of datapath field | alias,java.lang.Integer, java.lang.String,... |
refresh | The 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 |
dataformatting | Specific formatting of data | DIGITS:3 :number of decimal digits displayed for float fields DATEONLY: show date only of a date-time field TIMEONLY:show time only of a date-time field DURATIONDAYS:show duration in days of a special time duration float field DURATIONHOURS:show duration in hours of a special time duration float field DURATIONMINUTES:show duration in minutes of a special time duration float |
size | the size of text box | smaller(5 characters),small(8 characters), normal(16 characters),large(32 characters) |
url | if url is specify the text in read mode is a link | Any |
onchange | Defines the function call(s) triggered when select box value changed. | <functions>…</functions> |
Examples
Text box
Code Block | ||||
---|---|---|---|---|
| ||||
<textbox>
<id>PayAmtValue</id>
<datapath>totalAmount</datapath>
<size>smaller</size>
<dataformatting>DIGITS:2</dataformatting>
<datatype>java.math.BigDecimal</datatype>
<refresh>page</refresh>
<onchange>
<functions>
<function>
<type>ejb</type>
<classname>ejb/CRMUIPayment</classname>
<functionname>calculdateRoundedTotalAmount</functionname>
<resultaction>replace</resultaction>
<datatype>root</datatype>
<parameters>
<parameter>
<value>[[getDTO]]</value>
<datatype>java.lang.Object</datatype>
</parameter>
</parameters>
</function>
</functions>
</onchange>
</textbox> |
Text box 'alias' datatype
...
...
Code Block | ||||
---|---|---|---|---|
| ||||
<textbox>
<id>IssuedOnAlias</id>
<name>Issued On</id>
<value>[[notNull,java.lang.String,date1,java.lang.String,date2]]</value>
<datapath>issuedOn</datapath>
<datatype>alias</datatype>
</textbox>
|