Hybrid View

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

      0  

    Default Ext.form.FormPanel.getValues() can't handle array inputfield

    Ext.form.FormPanel.getValues() can't handle array inputfield


    Sencha Touch version tested:
    • 1.0.1a ____
    • only default sencha-touch.css




    Platform tested against:
    • iOS 4
    • Chrome 9


    Description:
    • When you have a inputfield that is an array like: fieldname[key][optional.][optional.], Sencha Touch will try to perform a isChecked function, because it expects an checkbox.


    Test Case:

    Code:
        var myPanel = new Ext.form.FormPanel({
             
            items: [{
                xtype: 'textfield',
                name: 'mytextfield[0][]'
            }, { 
                xtype: 'textfield',
                name: 'mytextfield[0][]'
            }]
        });
    Steps to reproduce the problem:
    • Create a formpanel object
    • Add a textfield to this formpanel with an array-like name
    • Request the formvalues with formPanel.getValues();
    • See it go in flames


    The result that was expected:
    • It should give me back an array of textfields or maybe group it inside the textfield


    The result that occurs instead:
    • Uncaught TypeError: Object [object Object] has no method 'isChecked'


    Possible fix:
    • temporary fix for current applications is to extend the formpanel class in which you override the getValues() function and check whether the field Object has an function 'isChecked'
    • permanent fix: rewrite the getValues to allow array-like textfields

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    18
    Vote Rating
    0
    apsbb is on a distinguished road

      0  

    Default


    Same here... but I dont't gen info from an Array.... Looking for a solution...

Similar Threads

  1. Replies: 2
    Last Post: 10 Dec 2010, 8:15 AM
  2. Replies: 1
    Last Post: 10 Dec 2010, 7:52 AM
  3. [3.1.1] multiple RadioGroups with same name - getValues not returning array
    By danellison in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 18 May 2010, 8:12 AM
  4. Replies: 5
    Last Post: 24 Nov 2008, 7:25 PM
  5. Replies: 1
    Last Post: 4 Jun 2008, 12:26 PM

Thread Participants: 1

Tags for this Thread