2012-10-15 37 views
1

當我嘗試將FormPanel的值傳遞給控制器​​時,我收到錯誤消息。如何將formvalue傳遞給控制器​​在sencha touch中

「對象#< HTMLFormElement>沒有方法 '的GetValues'」

Ext.define('MyApp.view.LoginPage', { 
extend: 'Ext.form.FormPanel', 
id: 'loginPanel', 
standardSubmit: true, 
config: { 
    fullscreen: true, 
    items: [{ 
     xtype: 'fieldset', 
     items: [ 
       { 
        xtype: 'textfield', 
        name: 'name', 
        label: 'Kullanıcı Adı' 
       }, 
       { 
        xtype: 'passwordfield', 
        name: 'password', 
        label: 'Şifre' 
       } 

如何訪問loginPanel.getValues()在控制器對象?

+1

當我使用Ext.getCmp('loginPanel')。getValues()時,問題就解決了。 – handet87

回答

1

當我使用Ext.getCmp('loginPanel')。getValues()時,問題解決了。

相關問題