Pavan Kumar
Hi All,
I am calling BPM rest api from client script and getting response also but when i assign response data to local variable the updated variable value is not showing in UI.
for example , updating the name variable with displayname from rest response. but after the client script execution i do not the new value in UI for name variable.
load: function (data){ console.log(data); temp = JSON.parse(data); console.log(temp); console.log(temp.data.displayName); tw.local.name= temp.data.displayName ; }
I have tested updating with constant like tw.local.name= “some value” which is working fine expecting the same behaviour for with rest response assignment.
Kindly let me how to fix this.
SPARK Support
Hi Pavan,
If you are updating the value of a bound variable via REST call, and the changes are not being reflected in the UI, then you may have found an issue with the underlying Coach NG framework. You can test to determine if the bound variable value has changed by getting a handle on a control (such as page.ui.get()) and calling control.context.binding.get(“value”);
Either way, please report this issue to IBM as a defect under your support agreement, as Salient Process no longer provides defect support for the UI Toolkit.
https://www.ibm.com/mysupport/s/
Regards,
Stephen P