PDA

View Full Version : TypeError: Ext.getCmp("DetailsForm").getForm is not a function



darkhorni
3 Sep 2012, 1:36 AM
I have form within a tab. It is second tab so it doesn't render until you open it.

I have tried to submit data to the form with
Ext.getCmp('DetailsForm').getForm().setValues(selections[0]); but it says that it is not a function. Probably because it is not rendered yet. What I have to do?

sword-it
3 Sep 2012, 2:59 AM
Hi,

may you provide your code for better understanding the problem

scottmartin
6 Sep 2012, 12:04 PM
Please have a look at the following:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.tab.Panel-cfg-deferredRender

Also .. you have setValues(selections[0]) .. there is no qualifier for selections

Scott.