We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5586
    • 8 Posts

    I’m hoping someone else has had this same problem. I know I’m doing something wrong - but can’t figure out what. I’ve setup a CMP that contains a DataView object. I modeled it after the Gallery Package (I copied the code mostly and made some modifications). For some reason, the code to refresh the grid doesn’t seem to fire. I have a button that brings up a window, and on submit - the processor script is called - the database is updated and the script returns success - but the form window just stays.

    Here is my listener:

    Ext.extend(FHC.panel.Collections,MODx.Panel, {
    windows: {}

    ,createCollection: function(btn,e) {
    if (!this.windows.createCollection) {
    this.windows.createCollection = MODx.load({
    xtype: ’fhc-window-collection-create’,
    listeners: {
    ’success’: {fn:this.refresh,scope:this}
    }
    });
    }
    this.windows.createCollection.fp.getForm().reset();
    this.windows.createCollection.show(e.target);
    }

    });

    Another note - the refresh button on the paging bar does indeed refresh the grid.

    I know this isn’t code snippet isn’t all that helpful and that the problem is likely somewhere else; I was hoping someone could give me some quick advice on what to look for. I’ll be happy to show more code if you think it would be helpful.

    Many thanks for your time!!