View Full Version : Accessing Components.

17 Jul 2014, 12:28 PM

I have one form panel name as form. Inside this form there are three panels named as panel1, panel2, and panel3. Inside panel1 there is a textfield name as textfield1. Similarly, inside panel2 there is textfield name as textfield. And inside panel3 there is a button named as button1. On the click event of this button, I want to get the values of textfield1 and textfield2 enter by the user. How to access this values. I am using Sencha Architect?
Please help me in this.


24 Jul 2014, 3:48 AM
The button handler receives the button as argument (also the button is the scope of the handler). With this, you can use this.up('form').getForm().findField('{fieldname}').getValue() (replacing {fieldname} with your field name, of course) to get the values.