I am a new user of Ext js 4.1.3 and i must say its very impressive. i almost got down some 10 screens in like a week., job well done team !!
i have a query which i wanted addressed. I have a view port with border layout in a js file and another js file holds an accordion with buttons to show up as menu and sub menus and yet another js file where i have built close to 10 different components / grids etc which i have placed into a type Ext.panel.Pane(10 of them) with a variable reference and an ID.
Now the accordion i place in the left border items array and i can place any of these 10 panels singly by their variable name specified in the 3rd js in the center border layout and show them up.
now i wanted to use a generic function that will fit in as the handler function in the accordion buttons (menus/sub menus- many of them) and on click i want to change the panel i built in the 3 rd js and show up in the center layout depending on what i have clicked on.
i tried using getCmp and holding the variable in the viewport js. but i am stuck on the logic flow where i want to place a particular panel on click of a particular button . i tried various things but i kept getting common errors such as not defined etc.
Can you help place me in the right direction. how should i resolve this ? maybe this is basic functionality but unfortunately i havent got it. so i'd appreciate any help that comes my way.