1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
    ArenINM is on a distinguished road

      0  

    Default Answered: TypeError: 'undefined' is not a function

    Answered: TypeError: 'undefined' is not a function


    I try to use the Ext.util.Format.number as this:

    val = 25000.30;
    fmtVal = Ext.util.Format.number(val, '0,000.00');
    fmtSpace = fmtVal.replace(',',' ');
    Ext.ComponentQuery.query('#sample')[0].setValue("test: " + fmtSpace );

    But it gives a error on this row:

    fmtVal = Ext.util.Format.number(val, '0,000.00');




    TypeError: 'undefined' is not a function (evaluating 'Ext.util.Format.number(val, '0,000.00')')

    Can somebody explain me what this mean, and what can I do to solve this?

  2. There is no 'number' function provided by Ext.util.Format in Sencha Touch.


    Edit: You can try using the formatting functions that are included in JavaScript instead.

  3. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    There is no 'number' function provided by Ext.util.Format in Sencha Touch.


    Edit: You can try using the formatting functions that are included in JavaScript instead.

Thread Participants: 1

Tags for this Thread