function #attributes.name#() { var f; if (typeof(#attributes.form#) != "undefined" && #attributes.form#.ctype != "Ext.Component") f = Ext.getCmp("#attributes.form#"); else f = #attributes.form#; if (f.getForm().isValid()) { if(f.url) f.getForm().getEl().dom.action = f.url; f.getForm().submit({ params: { #ArrayKeyToList(thisTag.params, "_out")# }, failure: function(f, a) { #thisTag.failure[1]._out# }, success: function (f, a) { #thisTag.success[1]._out# }, waitMsg:'Saving...' }); } else { Ext.MessageBox.alert("Validation Error", "Please correct the errors on the form and try again"); } #thisTag.generatedContent# #thisTag.generatedContent# Ext.MessageBox.alert("Unknown Action Type", "The action type '#attributes.type#' has not been implemented yet"); }