use getForm().getValues(false), get error: Object doesn't support this property or method.

  1. #1

    use getForm().getValues(false), get error: Object doesn't support this property or method.

    I have FormPanel in web page and use getForm().getValues(false) to get all fields value in the form. This code works in Ext.net version 1.0. when upgrade to ext.net version 2.3. I got Object doesn't support this property or method.
    What's I need to do to get all fields values in formpanel?
    The following is the code I used:

    function DoSearch(id) {
                var sform = eval('ff' + id.toString());            
                 
                if (sform) {
                   SearchForm(sform.getForm().getValues(false), id); 
                }
            }
    Last edited by Holly; Nov 07, 2013 at 12:25 PM.
  2. #2
    Hello,

    The following two thread can help with tips for posting in the forums:

    http://forums.ext.net/showthread.php...ing-New-Topics

    http://forums.ext.net/showthread.php...ation-Required

    Can you edit your first post and add [CODE] tags around your code sample?

    Thanks
    Geoffrey McGill
    Founder
  3. #3

    use App['ff'+id].getForm().getValues(true) will works

    I find the solution:
    use App['ff'+id].getForm().getValues(true) will works.



    Quote Originally Posted by Holly View Post
    I have FormPanel in web page and use getForm().getValues(false) to get all fields value in the form. This code works in Ext.net version 1.0. when upgrade to ext.net version 2.3. I got Object doesn't support this property or method.
    What's I need to do to get all fields values in formpanel?
    The following is the code I used:

    function DoSearch(id) {
                var sform = eval('ff' + id.toString());            
                 
                if (sform) {
                   SearchForm(sform.getForm().getValues(false), id); 
                }
            }

Similar Threads

  1. Replies: 5
    Last Post: Nov 21, 2013, 7:23 PM
  2. [CLOSED] Object doesn't support property or method 'setContainer'
    By pj_martins in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 18, 2011, 5:21 PM
  3. Object doesn't support this property or method
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Feb 08, 2011, 2:59 PM
  4. Replies: 4
    Last Post: Feb 09, 2010, 1:21 AM
  5. Object doesn't support this property or method
    By Tbaseflug in forum 1.x Help
    Replies: 8
    Last Post: Aug 18, 2009, 12:10 PM

Posting Permissions