Thanks for that reference, but I still do not understand...
Here's some more details from my project: I'm working on a custom CMP page to edit a custom database table, the first page with the grid loads the data, I have created a "Create New" button for a new entry, which loads a new page with the empty fields for the entry.
But my problem is I can't figure out how to add a "Save" button, and make it save the data to the custom database table.
I have looked at the Doodles example plugin and found this code, in this .js file: /asset/components/<CMP name>/js/mgr/*.js
Doodles.window.CreateDoodle = function(config) {
config = config || {};
Ext.applyIf(config,{
title: _('doodles.doodle_create')
,url: Doodles.config.connectorUrl
,baseParams: {
action: 'mgr/doodle/create'
}
,fields: [{
xtype: 'textfield'
,fieldLabel: _('doodles.name')
,name: 'reviewer'
,width: 300
}
]
});
Doodles.window.CreateDoodle.superclass.constructor.call(this,config);
};
but the "Save" button not appear, there's no error feedback from the code or in the Error Log?
Does anyone know how to solve this?