Results 1 to 2 of 2

Thread: Form Panel overwrites default values of Basic Form with "undefined"

    You found a bug! We've classified it as EXTJS-20308 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User
    Join Date
    Nov 2013
    Location
    Piacenza, Italy
    Posts
    220

    Default Form Panel overwrites default values of Basic Form with "undefined"

    Ext JS 6.0.1 (but also previous versions)

    When a new Form Panel is created, the internal Basic Form is created overriding default values with "undefined".

    The properties copied are listed in the Array Ext.form.Panel.basicFormConfigs (waitTitle, timeout, trackResetOnLoad, ...).

    Here is the code of Form Panel that is copying the variables (Ext.form.Panel.createForm):
    Code:
        createForm: function() {
            var cfg = {},
                props = this.basicFormConfigs,
                len = props.length,
                i = 0,
                prop;
                
            for (; i < len; ++i) {
                prop = props[i];
                cfg[prop] = this[prop];
            }
            return new Ext.form.Basic(this, cfg);
        }
    Here is the code of Basic Form that is applying the values (Ext.form.Basic.constructor):
    Code:
        constructor: function(owner, config) {
            var me = this,
                reader;
    
            //...
            Ext.apply(me, config);
            //...
        }

  2. #2

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 3
    Last Post: 21 May 2013, 5:27 AM
  2. Replies: 4
    Last Post: 24 Jan 2012, 12:41 PM
  3. Problem loading form: Cannot read property "OffsetBoundary of undefined"
    By vaskito in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 31 Aug 2011, 7:15 AM
  4. Replies: 0
    Last Post: 19 Jan 2009, 4:27 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
  •