I am creating a CMP that showing a list of resources in grid format
i already created the
create class of processor , and i would like to redirect to editing page when success , but i cannot get the newly inserted resource id , how can i get it ??
Product.window.CreateProduct = function(config) {
config = config || {};
Ext.applyIf(config,{
title: _('product.product_create')
,url: Product.config.connectorUrl
,baseParams: {
action: 'mgr/product/create'
}
,fields: [{
xtype: 'textfield'
,fieldLabel: _('product.name')
,name: 'pagetitle'
,anchor: '100%'
},{
xtype: 'textarea'
,fieldLabel: _('product.description')
,name: 'description'
,anchor: '100%'
}
] , success: function(o){
location.href='?a=30&id='+o.result.object.id;
},
});
Product.window.CreateProduct.superclass.constructor.call(this,config);
};