Hi,
is there somebody around who could give me a hint how to solve this MODx/ExtJS problem?
What I'm trying to achieve is a fake resource preview, by updating another resource with the current resource's properties.
So I'm adding a ExtJS button to the resource toolbar, which works as expected, but I can't manipulate the ID of the resource I want to actually save the properties to.
var modab = Ext.getCmp("modx-action-buttons");
modab.add({
xtype: 'button'
,text: 'Preview'
,method: 'remote'
,process: 'update'
,baseParams: {
ID ( I tried several options)
}
,success: function(data) {
console.log(data);
Ext.alert('Success');
}
,id: 'modx-abtn-real-preview'
,checkDirty: true
});
If possible: How can I pass the ID parameter to the processors handling
create and
update?
I'm completely stuck, so any help is highly appreciated.
Thanks
[ed. note: herooutoftime last edited this post 13 years, 3 months ago.]