REST Documentation Question
Posted: Thu Jan 24, 2013 11:45 pm
Looking over the documentation I noticed something odd.
In both the ws_update and ws_create code there is a foundset.loadAllRecords(); at the end of the code.
The doing that important or necessary? Or is it just in there by mistake?
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?