3 Feb 2013 2:56 AM #1
FireEvent from View with itemId to Controller
I'm trying to send event form view with have itemId to controller.
I'm using standard path with ref/control pattern.
And it doesn't work. But if I change itemId to id it works. Is this a bug? How can I use itemId in that situation?
5 Feb 2013 7:35 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
itemId is like id but localized to a container. So if you just used something like '#someid' then it will likely look for a component with an id of someid.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
6 Feb 2013 3:38 AM #3
Ok. You've right. But if i set ref like: ' #itemId' it works. How is that? And why it is not documented?
6 Feb 2013 8:16 AM #4
The hash tag is specifically used to get components by their itemId configuration.
There is a doc page on it: