PDA

View Full Version : reference the item on the component (i.e. how to avoid getting component by ID)



semenov
28 Jun 2010, 12:57 PM
Hi Guys,

idea is this I'm building a complex form and create a new reusable component extended from FormPanel. That component has several fields in it.

I have 1-N windows that contains the same form inside them (widgets). In this case as far as I understand I can't give IDs to every field/item inside the form, otherwise it won't work at all.

So the question is, assuming I have 10 widgets of the same type instantiated on the page. How can I get a particular element/item on the form, if I can't get them by ID?

Is there a solution for that?

thanks for your help!

CrazyEnigma
28 Jun 2010, 1:08 PM
Hope this post helps.

http://www.sencha.com/forum/showthread.php?101690-Question-about-duplicate-id-s&p=477268#post477268