Utility methods to perform common functions in a Service Portal widget client script.
spUtil.addErrorMessage("There has been an error processing your request")
spUtil.addInfoMessage("Your order has been placed")
spUtil.addTrivialMessage("Thanks for your order")
spUtil.format('An error ocurred: {error} when loading {widget}', {error: '404', widget: 'sp-widget'})
spUtil.recordWatch($scope, "incident", "active=true", function(response) { // Returns the data inserted or updated on the table console.log(response.data); });
spUtil.get("widget-cool-clock").then(function(response) { c.coolClock = response; });
No responses yet