1. #1
    Touch Premium Member pkellner's Avatar
    Join Date
    Sep 2008
    Location
    San Jose, California
    Posts
    704
    Vote Rating
    23
    pkellner will become famous soon enough pkellner will become famous soon enough

      0  

    Default catching fired events in the MVC controller, different than PR3 (and not working)

    catching fired events in the MVC controller, different than PR3 (and not working)


    In PR3, I could capture fired events in the controllers init function as shown in the code below. Now, there seems to be no application.on any more. How can I capture application fired events in PR4?

    Code:
    Ext.define('Myapp.controller.Main', {
        extend: 'Ext.app.Controller',
        requires: [
            'Myapp.store.SelectedRecipientsStore'
        ],
    
    
         init: function () {
            debugger;
            console.log("init function in Myapp.controller.Main");
            var me = this;
    
    
    
    
            me.application.on({
                emaildisplay: this.onEmailDisplay,
                scope: this
            });
    
    
    
    
    
    
    
    
        },
    
    
        config: {
    
    
            refs: {
                tabRecipients: 'tabsrecipients',
                mainviewport: 'mainviewport',
                selectedrecipientslist: 'selectedrecipientslist',
                sectionslist: 'sectionslist'
            },
    
    
            control: {
                "mainviewport": {
                    activate: "onActivatedPanelWith4TabsAndSelectedList"
                },
                "selectedrecipientslist": {
                    activate: "onActivatedSelectedRecipientsList"
                },
                "sectionslist": {
                    onItemDisclosure: "onItemDisclosureSectionsList"
                },
                "button[action=CompanyButton]": {
                    tap: "onTapCompanyButton"
                },
                "button[action=ADUsersButton]": {
                    tap: "onTapADUsersButton"
                },
                "button[action=ADGroupsButton]": {
                    tap: "onTapADGroupsButton"
                }
            },

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Use me.getApplication() to get the application instance.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    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.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar