onResponseUpdateAfter
onResponseUpdateAfter
Called right after a normal request's response value has been applied to the Data Set.
Parameters
dsName(string): The name of the Data Set that was updatedprovInstName(string): The name of the Provider Instance that sent the response
Returns: No return value — this is a callback, so its return value isn't used.
Description
The Data Set update is complete, so from this point you can read the latest value. Use it for follow-up calculations or to trigger updates on other widgets.
Example
function onResponseUpdateAfter(dsName, provInstName) {
var count = $vm.getDataCount(dsName + ".list");
$log.i(dsName + " updated, count=" + count);
}
Related
- It pairs with
onResponseUpdateBefore; the Before/After difference is whether the value has reached the widgets yet. - To read the value, you must do it in
onResponseUpdateAfteror later — earlier events return stale data.