Hybrid View

  1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    9
    Vote Rating
    0
    snehat is on a distinguished road

      0  

    Default I got the valueField instead of displayField.

    I got the valueField instead of displayField.


    Hi,
    i have a GridEditorPanel with a ComboBox Editor and my mode:remote. But after the selection of a value of the ComoBox and submit my recordform, i got the valueField instead of displayField.

    How to i render the displayField but still have access to the valueField to pass this to my backend?

    here is my code

    Code:
     this.LookupRecord = Ext.data.Record.create([
                      {name: 'devicecategory_id'},
                      {name: 'devicecategory_name'}
            ]);
            //Store for combo box of category
            this.categorycombo = new Ext.data.Store({        
                 proxy: new Ext.data.HttpProxy({url: this.url})
                ,baseParams:{mode:'combo', objName:"devicecategory"}
                ,reader: new Ext.data.JsonReader({
                         id:'devicecategory_id',
                         root:'rows',
                         totalProperty:'totalCount'                    
                    },[{
                                name: 'devicecategory_id',
                                mapping: 'devicecategory_id'
                            }, {
                                name: 'devicecategory_name',
                                mapping: 'devicecategory_name'
                            }]),
                            autoLoad: true,this.LookupRecord)
             });
    So please help me for this.
    Thanks in advance
    Snehat

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    1
    devnull is an unknown quantity at this point

      0  

    Default


    You have shown the store for you combo, but not the config for the combo itself btw...
    Read API docs for combobox, particularly 'hiddenName' config option.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."