0

can anybody tell is it possible to call the view depend upon the page name in extjs4.1

Thanks

mohan
  • 13,035
  • 29
  • 108
  • 178
  • Your solution seems reasonable. Doesn't it work? If it fails, how? – rixo Jun 05 '13 at 13:09
  • @rixo it doesn't work – mohan Jun 05 '13 at 13:32
  • We need more information in order to help you. What about it doesn't work? Does it throw an error? Have you tried it without the pageName conditional? What class is `testpage` inheriting from and have you defined its alias correctly? – Eric Jun 05 '13 at 14:05
  • @Eric am getting error cannot read property 'items' of undefined – mohan Jun 06 '13 at 04:30

1 Answers1

0

You're missing the callParent() function inside initComponent.

Evan Trimboli
  • 29,900
  • 6
  • 45
  • 66
  • i have update the code still getting error Cannot read property 'length' of undefined can u check whether am added in right place – mohan Jun 06 '13 at 05:53
  • You need to assign the items before doing `callParent`. – Evan Trimboli Jun 06 '13 at 07:06
  • after assigned and called but am getting this error Ext.panel.Table.initComponent(): A column configuration must be specified – mohan Jun 06 '13 at 07:27
  • can you help in this question http://stackoverflow.com/questions/16980913/how-to-call-second-application-view-from-first-application-in-extjs4-1 – mohan Jun 11 '13 at 05:02