May 29, 2013, 10:21 PM
[CLOSED] Record changes not being reflected
Hi Guys
I have a directevent on a button where I do a pre-submit check using
I have a directevent on a button where I do a pre-submit check using
de.Click.Before = "gridCheck";
This checks a bit of data if false then updates all the rows in the grid. /* Check is permitted */
Ext.net.DirectMethod.request({
url: 'ExtNet/permitted?RNCY=' + App.RNCY.getValue(),
success: function (result) {
if (result == false) {
alert('Approval Needed');
var grid = Ext.getCmp("GridPanel_" + extraParams.tabId);
grid.getStore().each(function (record) {
record.set('StatusId', 3010);
});
}
}
});
The Alert fires and using firebug I can see the record.set('StatusId', 3010); is getting executed but the changes are not making it to the database. do I need to put an extra step in to force an update of the store before the directevent get processed?
Last edited by Daniil; Jun 04, 2013 at 5:10 AM.
Reason: [CLOSED]