PDA

View Full Version : sample management system . develepment doubts.



saji.krizh
2 May 2012, 11:23 PM
Hi sencha users,

please help me. im new in sencha architect 2 and in ext js4. im trying to develop a employee management webapplication. i just created the desgin.
1.first a viewport with fit layout
inside that viewport added a panel with border layout
inside that panel in the top region added some menu
2. create a new panel outside with name/id 'createemp' form contents for insertion
3. create a new panel outside with name/id 'editemp' with editing contents.

im attaching all the screen shots..
i want to know how i can call theses 2 panels(createemp and editemp) inside the centre region of main panel for corresponding menu button click ?
how can i pick the menu button click event, where i can write the function means in which js file ?

34809348103481134812


http://www.4shared.com/zip/d3Jp36kz/demo1.html
pleae help me !!!
Thanks in advance

scottmartin
11 May 2012, 2:55 PM
If you are using an 'id' for your components, you can use Ext.getCmp()

itemId is preferred as mentioned below.

Regards,
Scott

13 May 2012, 4:35 AM
If you are using an 'id' for your components, you can use Ext.getCmp()

Regards,
Scott

Using static ids is highly discouraged!

scottmartin
14 May 2012, 4:28 AM
Using static ids is highly discouraged!

Agreed ... based on his code. Please use itemId

Scott.