PDA

View Full Version : [CLOSED] I can not Query with itemId using ComponentQuery



zw_lv
15 Nov 2011, 10:37 PM
REQUIRED INFORMATIONExt version tested:

Sencha Touch 2.0 rev PR2
Browser versions tested against:

Chrome 15
DOCTYPE tested against:

html
Description:

In my view, my itemId is #TabPanel, but it did not fire the painted event.
if I change itemId to id, it worked.

this only happens at the first level,
itemId on second level(#Settings) was working well.

I hope u can know my so poor English...:D
Steps to reproduce the problem:

Create view with an itemId
Call control() in controller with itemId
The result that was expected:

can query with itemId
The result that occurs instead:

the result of query is undefined
Test Case:
this.control(
{
'#TabPanel #Settings':
{
select: this.onSelectSettings
}
,
'#TabPanel':
{
painted: this.onActivateMap
}
}

HELPFUL INFORMATION Debugging already done:


Through chrome debugger
Operating System:

XP sp3

And, it did not happen at PR1

Jamie Avins
16 Nov 2011, 9:36 AM
Thank you for the report.

rdougan
16 Nov 2011, 11:32 AM
Are you sure you are putting the itemId inside the config: {} block in your view? I tested this and it works.

zw_lv
16 Nov 2011, 4:01 PM
I am sorry for troubling you at busy time before 2.0 release.
It worked when I put it in config{}.

thank you.