Results 1 to 3 of 3

Thread: Issue with displayField and valueField in combo remote store

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    37

    Default Issue with displayField and valueField in combo remote store

    Hi,
    i have some issue submitting the value of combo with a remote store loaded.
    It's all ok but when i submit form the value returned from combo is displayField and not valueField.

    I red something on the net but not a clear solution.

    Is there a solution to solve that problem?

    Here the combo code:

    PHP Code:
    {
       
    xtype'combo',    
       
    id'cod_FMC',    
       
    name'cod_id',        
       
    fieldLabel'Cod.',    
       
    storecomboStoreCod,    
       
    typeAheadfalse,    
       
    forceSelectiontrue,    
       
    triggerAction'all',    
       
    emptyText:'Select one.. ',    
       
    queryMode'remote',     
       
    displayField:'cod_desc',     
       
    valueField:'cod',     
       
    allowBlankfalse,    
       
    hideTrigger:false,    
       
    blankText'...',     
       
    selectOnFocustrue


    Here the store code:

    PHP Code:
    var comboStoreCod = new    Ext.data.JsonStore ({    
    autoloadtrue,    
    id:    'comboStoreCodiceVia',    
    root'rows',    
    fields: [{        
       
    name:     'cod',        
       
    mapping:'cod'    
    },{        
       
    name:    'cod_desc',        
       
    mapping:'cod_desc'    
    }],
        
    url'web-service/path/to/store/store.php',    
    method'GET'
    });

    comboStoreCodiceVia.load(); 

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    Have you tried using the hiddenName?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

Posting Permissions

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