1. #1
    Sencha User
    Join Date
    May 2012
    Location
    The Hague
    Posts
    4
    Vote Rating
    0
    Datawarehouse MCH is on a distinguished road

      0  

    Default Need help with window show/hide

    Need help with window show/hide


    Hi all,

    I've got a problem with a Window that has to show when pressing a button in a form.

    I've created 2 views, a form(mainForm) and a Window(WindowAdministratiekostenPOP). The form is my initialview.

    When pressing a button the windows has to show. This is my button handler:

    Ext.getCmp('WindowAdministratiekostenPOP').showAt(200,100);

    Below are the properties of the window. When running the above command i get:

    TypeError: Cannot call method 'showAt' of undefined

    When putting all code below in the init part of the application(with
    ,function() {
    var WindowAdministratiekostenPOP = new this();
    }
    as addition) it works fine.

    So my question is: how do I get my window defined with SA? Do I set this in the Window properties? Or some other place in SA?

    Window definition:
    Ext.define('WetenschapsfondsApp.view.WindowAdministratiekostenPOP', {
    extend: 'Ext.window.Window',
    alias: 'widget.WindowAdministratiekostenPOP',

    floating: false,
    height: 372,
    hideMode: 'offsets',
    id: 'WindowAdministratiekostenPOP',
    width: 673,
    autoDestroy: false,
    closeAction: 'hide',
    titleCollapse: false,

    initComponent: function() {
    var me = this;

    Ext.applyIf(me, {
    items: [
    {
    xtype: 'gridpanel',
    height: 342,
    id: 'gridAdministratiekostenPOP',
    width: 663,
    store: 'AdminKostenStore',
    columns: [
    {
    xtype: 'gridcolumn',
    id: 'specialisme',
    dataIndex: 'string',
    text: 'Specialisme'
    },
    {
    xtype: 'gridcolumn',
    id: 'ctgcode',
    dataIndex: 'number',
    text: 'CTG code'
    },
    {
    xtype: 'gridcolumn',
    id: 'ctgoms',
    width: 250,
    defaultWidth: 300,
    dataIndex: 'date',
    text: 'CTG oms'
    },
    {
    xtype: 'rownumberer',
    id: 'bedrag',
    width: 100,
    dataIndex: 'bool',
    text: 'bedrag'
    },
    {
    xtype: 'datecolumn',
    id: 'jaar',
    text: 'Jaar'
    }
    ]
    }
    ]
    });

    me.callParent(arguments);
    }

    });

  2. #2
    Sencha User
    Join Date
    May 2012
    Location
    The Hague
    Posts
    4
    Vote Rating
    0
    Datawarehouse MCH is on a distinguished road

      0  

    Default


    In case anybody else should wonder, solved by putting:

    var window = Ext.ClassManager.instantiate('widget.WindowAdministratiekostenPOP');

    In the launch part of the application.

    Regards,
    Fabio

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