Results 1 to 4 of 4

Thread: date field empty after form load

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    12

    Default date field empty after form load

    I had a datefield on my form, so after loading data from a JSP it get empty.
    Code:
                    layout:'column',
                    items:[{
                        columnWidth:.33,
                        layout: 'form',
                        items: [{
                            xtype:'datefield',
                            fieldLabel: 'Date',
                            name: 'date',
                            anchor:'95%',
                            allowBlank:false,
     
                        }]
                      }
    Last edited by mystix; 11 Feb 2010 at 9:24 AM. Reason: POST CODE IN [code][/code] TAGS. see http://extjs.com/forum/misc.php?do=bbcode#code

  2. #2
    Sencha User
    Join Date
    Feb 2010
    Posts
    12

    Default

    all fields load fine except the date

  3. #3
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,232

    Default

    what does the incoming date string from the server look like?

    also note that you've failed to specify a format config on your DateField, so the default DateField#format will be used.

  4. #4
    Sencha User
    Join Date
    Feb 2010
    Posts
    12

    Default

    I fix it. From my MySQL SELECT statement i just format the date field.

    select date_format(`master`.`date`,_utf8'%m/%d/%Y') AS `date_f` from master

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •