Hi,
i have an Ext.form.FormPanel that i want to fill with the load method but the json response doesnt has the same input field names of the form. Is there any way to map the name of the json response with the names of the form?
thanks
Printable View
Hi,
i have an Ext.form.FormPanel that i want to fill with the load method but the json response doesnt has the same input field names of the form. Is there any way to map the name of the json response with the names of the form?
thanks
There is no such built-in functionality using the load method but you can always consume your service with a store and defining mappings on the fields. Then you will be able to load data into the form using the Ext.form.BasicForm.loadRecord() method. The BasicForm object is encapsulated by the FormPanel and you can retrive it using the Ext.form.FormPanel.getForm() method.