• Martin Lorenz
    September 8, 2017 at 5:33 am #4542

    I found bug in decimal and integer control. I can’t set decimal and integer control, empty value. When I try do it (this.page.ui.get(‘Integer’).setValue(undefined), then I can’t enter in this field 0 value. When I try enter 0, value disappears. I must enter e.g. 1 or any another value then I can enter 0. I don’t know wht’s happening. Please help. I attach twx file with example.

    SPARK Support
    September 8, 2017 at 10:57 am #4545

    Hi Martin,

    The Decimal and Integer controls are bound to properties of an Object.  The control does not recognize the difference between 0 and undefined since the numericObject variable has not been instantiated.  This issue is resolved by setting a Default Value on the object at the CSHS level:

    var autoObject = {};
    autoObject.integer = “”;
    autoObject.decimal = “”;


    Stephen P.

    Martin Lorenz
    September 19, 2017 at 5:58 am #4557

    Thanks for help :). Your solutions work 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search