Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Suppress leading zeros

    How can a field be defined to suppress all leading zeroes? For example, the field should display as blank if it is set to 0000. I have tried using maskFormatter in the ui.xml and it causes 0000 to display as 0.

    <fieldcontrol:Field label="{LABELS.extension}">
    <formcontrol:TextInputField ui:field="extension_" width="100px" readOnly="true"
    maskFormatter="####" />
    </fieldcontrol:Field>

    #2
    See DataSourceField.format. But note that whatever that XML syntax is that you're using, it's not what SmartClient and SmartGWT use.

    Comment

    Working...
    X