NumberDialog

Top  Previous  Next

  <span mo:type="NumberDialog" mo:name="${fieldName}" mo:field="true" mo:needsInit="true" 
       mo:iValue="${initialValue}"
       mo:props="
          allowSign       : ${allowSign}
          precisionDigits : ${precisionDigits}
          round           : ${round}
          padZeros        : ${padZeros}
          nonBlank        : ${nonBlank}
          validValues     : '${validValues}',
          valHandler      : ${valHandler}
          valErrorHandler : ${valErrorHandler}
       ">
    <input type="hidden" name="pf_${fieldName}"/>
    <input type="text" name="__LeftPart" onblur="NumMgr.formatLeftPart(this,true)" 
            onkeyup="NumMgr.formatLeftPart(this)" />
    <span mo:type="DecimalPoint">.</span>
    <input type="text" name="__RightPart" onkeyup="NumMgr.formatRightPart(this)" />
  </span>

 

 

${fieldName}

The name of the ProcessField

${initialValue}

The initial value of the field

${allowSign}

Specify "true" if the value can be negative.

${precisionDigits}

The number of the precision digits that can be entered after the decimal symbol.

${round}

Specify "true" to round the displayed value

${padZeros}

Specify "true" to pad zeros at the right side when precision digits are less than the specified.

${nonBlank}

If "true" then the field cannot be left blank

${validValues}

The valid values separated with ";" characters

${valHandler}

The name of the validation handler function

${valErrorHandler}

The name of the validation error handler function