This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: GUI Composer: Input widget not updated when value field changed from Javascript

Part Number: CODECOMPOSER


Tool/software:

I can change the input widget value from an event handler, but the value that is displayed in the input box is not updated.  It doesn't seem to refresh with the contents of the value field after I make an update.  For example, I have a button press handler:

var inc_ml = function(){
const binding = bindingRegistry.getBinding('ml.value');
var value = binding.getValue();
value++;
binding.updateValue(value);
alert("inc_ml() called");
alert(value);
};

If the value starts at '0', the alert will show that value is now '1' at the end of the function.

On the next button press, the value becomes '2'.  So the value is being updated and retained.

However, the value in the input box remains '0'.  

Any thoughts on why the input box is not being updated?

Thanks again!