Results 1 to 2 of 2

Thread: ComboBox Post displayField instead of valueField

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Saarbrcken, Germany
    Posts
    33

    Question ComboBox Post displayField instead of valueField

    why submit this combo the displayField text and not the valueField? need the real value (for example "close") ...
    PHP Code:
    {
                            
    xtype'combo'
                            
    ,fieldLabel'Status'
                            
    ,allowBlankfalse
                            
    ,name'state'
                            
    ,anchor'100%'
                            
    ,typeAheadtrue
                            
    ,triggerAction'all'
                            
    ,value'open'
                            
    ,mode'local'
                            
    ,store: new Ext.data.ArrayStore({
                                
    id'stateStore'
                                
    ,fields: [
                                    
    'state'
                                    
    ,'displayText'
                                
    ],
                                
    data: [["open""offen"], ["pending""in Bearbeitung"], ["closed""fertiggestellt"], ["denied""abgelehnt"]]
                            })
                            ,
    valueField'state'
                            
    ,displayField'displayText'
                        

    thx, markus

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Code:
    name: 'state' -> hiddenName: 'state'

Similar Threads

  1. combobox | displayField | valueField
    By thatcoder in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 30 Apr 2009, 3:11 PM
  2. valueField, displayField in ComboBox
    By sicher in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 14 Apr 2009, 11:18 AM
  3. Replies: 1
    Last Post: 15 Jan 2008, 12:13 AM
  4. combobox valueField vs displayField?
    By rledousa in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 5 Nov 2007, 1:24 PM
  5. Combobox valueField vs. displayField
    By momo in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 4 Jul 2007, 5:43 AM

Tags for this Thread

Posting Permissions

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