Reputation: 33
After I call app.saveRecords() in server script I have to hit refresh (in Chrome) on any client pages to reload the datasource. Is there something I can call after saveRecords() on the server to force the clients to refresh?
Upvotes: 2
Views: 382
Reputation: 33
This client script code worked:
function addCont(widget) {
var holder = widget.root.descendants;
var con = {
barcode: holder.Barcode.value,
part: holder.Part.value,
location: holder.Location.value
};
google.script.run.withSuccessHandler(function(result) {
console.log("Container Added");
// This forces the other pages to reload after the server adds the record
widget.root.datasource.load();
clearAddCont(widget);
}).addContainer(con);
}
Upvotes: 1