Skip to end of banner
Go to start of banner

Textbox

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Description

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

Attributes

NameDescriptionValue
id

Unique Identifier

any
nameA name that describes the Text box.Any
visiblemodesThe modes the text 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 Text box.'[[pagefunction, datatype, datapath ]]' operator(==,!=) 'value'
readonlyIf 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'
datapathThe data path field nameNeeds to correspond to the CRMDO object field.
datatypeThe type of datapath fieldalias,java.lang.Integer, java.lang.String,...
refreshThe page parts that should be refreshed when the text 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

dataformattingSpecific 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

sizethe size of text box

smaller(5 characters),small(8 characters),

normal(16 characters),large(32 characters)

urlif url is specify the text in read mode is a linkAny
onchangeDefines the function call(s) triggered when text box value changed.<functions>…</functions>

Examples

Text box

Text Box
<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

Text Box 'alias' datatype
<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>

Text box with url

 

Text box with url
<textbox>
    <id>txtCode</id>
    <datapath>code</datapath>
    <url>page.do?xml=products/products&amp;act=summary</url>
</textbox>
  • No labels