In both the ws_update and ws_create code there is a foundset.loadAllRecords(); at the end of the code.
- Code: Select all
function ws_create(data,version,pk)
{
var rec = foundset.getRecord(foundset.newRecord());
rec.name_first = data.name_first;
rec.name_last = data.name_last;
rec.email = data.email;
rec.phone_cell = data.phone_cell;
rec.company_id = data.company_id;
databaseManager.saveData(rec);
foundset.loadAllRecords();
}
The doing that important or necessary? Or is it just in there by mistake?