Foundset
Posted: Mon May 15, 2017 12:30 pm
Hi all, I want to change value of the data in foundset how can i change?
foundset.myColymnName = 'new value';
// making sure the data is saved to the database
databaseManager.saveData(foundset);
var
i=0,
rec=null;
for( i=1; i <= foundset.getSize(); i++ ) {
rec = foundset.getRecord(i);
rec.fieldName = rec.fieldName + 'newValue';
}
var _updater = databaseManager.getFoundSetUpdater(foundsetToUpdate)
if() {
_updater.setColumn("your_column",1)
}else{
_updater.setColumn("your_column",0)
}
_updater.performUpdate()