Search code examples
extjssencha-touch

How to pass all field values from one view to another by a single object?


I have two views 1.UserInfo 2.EditUserInfo

In view UserInfo there are lots of filed on the view

I want to pass that values to EditUserInfo view using a single object

Is there any in build option in Ext JS to pass all field values from one view to another using single view-object


Solution

  • If your fields are in a formpanel (they better be), the easiest would be to use formpanel.getValues() and formpanel.getForm().setValues().