Delete field in Grid remains old data. How to solve?
Excuse me!
My project using GRID had a problem that I can't solve it right now. Anyone could help?
My form has either Add new and delete Product Information
My JS is:
page.soInfo.bt_RemoveRow.onControlClicked=function(){
if(confirm('Are you sure to delete?'))
{
var currentRow = solTable.getCurrentRow();
solTable.deleteRow(currentRow);
solTable.refresh();
if(solTable.getRowCount() > 1)
{
page.soInfo.bt_RemoveRow.setControlDisabled(false);
}
else
{
page.soInfo.bt_RemoveRow.setControlDisabled(true);
}
stt--;
getTotalCurrentAmount();
}
}
By this I want to delete or add a new record by just select 1 field and click "Delete Row" or "Add new". Submit data by click button "Accept" will send data in Grid into database.
But whenever I click "Delete Row", then click "Add New", the new row will show the datas I've deleted before. How can I solve this problem?
My project using GRID had a problem that I can't solve it right now. Anyone could help?
My form has either Add new and delete Product Information
My JS is:
page.soInfo.bt_RemoveRow.onControlClicked=function(){
if(confirm('Are you sure to delete?'))
{
var currentRow = solTable.getCurrentRow();
solTable.deleteRow(currentRow);
solTable.refresh();
if(solTable.getRowCount() > 1)
{
page.soInfo.bt_RemoveRow.setControlDisabled(false);
}
else
{
page.soInfo.bt_RemoveRow.setControlDisabled(true);
}
stt--;
getTotalCurrentAmount();
}
}
By this I want to delete or add a new record by just select 1 field and click "Delete Row" or "Add new". Submit data by click button "Accept" will send data in Grid into database.
But whenever I click "Delete Row", then click "Add New", the new row will show the datas I've deleted before. How can I solve this problem?
Micheal
April 14,