-
20 Sep 2009 10:44 AM #1
Ext.ux.MsgBus Plugin by Saki
Ext.ux.MsgBus Plugin by Saki
Hi all,
I wrote (yet another) Message Bus plugin. See http://blog.extjs.eu/plugins/ext-ux-msgbus-plugin/ for details and let me know what do you think.
Cheers,
SakiJozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
20 Sep 2009 1:52 PM #2
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
15 Oct 2009 5:33 PM #3
publish on a button
publish on a button
Hi. Have this code (a form button). The form has plugins: ['msgbus']. Once I click the button, the data is saved and then... nothing happens. Even the form.reset() doesn't executes. Any ideas?
Code:buttons:[{ text: 'Grabar', formBind: true, iconCls: 'database_save', scope: this, // Function that fires when user clicks the button handler:function(){ var thisForm = Ext.getCmp('frmAppMenu'); thisForm.getForm().submit({ method:'POST', success:function(form, action){ form.publish('bdApp.db.recordInsert', 'appMenu'); form.reset(); },
-
15 Oct 2009 10:27 PM #4
-
16 Oct 2009 2:00 AM #5
Does the success callback execute at all? Set a breakpoint there.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
16 Oct 2009 5:45 AM #6
Yes, it does execute.
Adding an explicit form variable (var thisForm...) does the trick, but I don't think is an elegant way to do it.
Code:handler:function(){ var thisForm = Ext.getCmp('frmAppMenu'); thisForm.getForm().submit({ method:'POST', success:function(form, action){ thisForm.publish('bdApp.db.recordInsert', 'appMenu'); form.reset(); },
-
16 Oct 2009 5:47 AM #7
I mean, how do I get the PanelForm containing the button without explicity getCmping it by name?
-
16 Oct 2009 7:59 AM #8
Go the other route: Create a ref: for the button, run the button handler in the scope of the PanelForm and access the button from the PanelForm using a dot.
More details here: http://www.vinylfox.com/the-hottest-...r-heard-about/
-
16 Oct 2009 9:36 AM #9
I'll try. Also, I'll try adding the plugin to the button directly instead of the form.
-
17 Oct 2009 12:20 AM #10Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video


Reply With Quote