Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    159
    Vote Rating
    0
    mdavis6890 is on a distinguished road

      0  

    Default [FIXED]Ext.form.Basic.getValues()

    [FIXED]Ext.form.Basic.getValues()


    I was having some trouble with getting the proper values from comboboxes in my form. I found this override to fix the problem for me:

    PHP Code:

    Ext
    .override(Ext.form.Basic, {
        
    getValues: function(asStringdirtyOnlyincludeEmptyText) {
            var 
    values = {};

            
    this.getFields().each(function(field) {
                if (!
    dirtyOnly || field.isDirty()) {
                    var 
    name field.getName(),
                        
    //val = field.getSubmitValue(), // Gets raw value rather than actual value
                        
    val field.getValue(), //My fix, which gets the proper value.
                        
    bucket;
                    if (
    val !== null) {
                        if (
    includeEmptyText && val === '') {
                            
    val field.emptyText || '';
                        }
                        if (
    name in values) {
                            
    bucket values[name];
                            if (!
    Ext.isArray(bucket)) {
                                
    bucket values[name] = [bucket];
                            }
                            
    bucket.push(val);
                        } else {
                            
    values[name] = val;
                        }
                    }
                }
            });

            if (
    asString) {
                
    values Ext.urlEncode(values);
            }
            return 
    values;
        },

    }); 

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,785
    Vote Rating
    597
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This has been resolved, thanks for the report.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    159
    Vote Rating
    0
    mdavis6890 is on a distinguished road

      0  

    Default


    I'm a little new at this, so can you help me understand what "resolved" means?

    Did you fix it my way, or some other way? Can you post the final code block?

    Best,
    Michael

Similar Threads

  1. form.getValues - this.el is undefined
    By ser in forum Ext 3.x: Help & Discussion
    Replies: 10
    Last Post: 21 Oct 2010, 9:52 AM
  2. Ext.form.BasicForm.getValues() returns object if form is empty
    By mrutz in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 22 Dec 2009, 2:31 AM
  3. [1.1] form.getValues() && emptyText
    By nassaja-rus in forum Ext 1.x: Bugs
    Replies: 13
    Last Post: 20 Aug 2009, 10:17 PM
  4. Extjs Form.getValues
    By deepakjacob in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 15 Feb 2009, 8:36 AM

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..."