1. #1
    Sencha User
    Join Date
    Dec 2011
    Location
    White Rock, BC Canada
    Posts
    161
    Vote Rating
    0
    WagsMax is on a distinguished road

      0  

    Default ActionSheet reference not working??

    ActionSheet reference not working??


    In Designer, I am using this code, and I am baffled that variable actionSheet remains undefined after stepping over the first line:
    Code:
    var actionSheet = App.app.getController('MainController').getDetailsAction();
    Ext.Viewport.add(actionSheet);
    actionSheet.show();
    elsewhere in the Designer I have defined a controller reference:
    Code:
    Ext.define('App.controller.MainController', {    extend: 'Ext.app.Controller',
        config: {
            refs: {
                detailsAction: 'detailsaction'
            },   ...
    and the definition of the ActionSheet:
    Code:
    Ext.define('App.view.DetailsAction', {    extend: 'App.view.ui.DetailsAction',
        alias: 'widget.detailsaction',
        initialize: function() {
            var me = this;
            me.callParent(arguments);
        }
    });
    The same type of code works with other controller references/views. Any ideas why this one is not working?

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Do you have instance of detailsaction?
    Bharat Nagwani
    Sencha Designer Development Team

Thread Participants: 1