You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Two way binding with oj-bind-for-each

edited Sep 2, 2018 11:29PM in Visual Builder 4 comments

Summary

I have a oj-bind-for-each bound to a page variable of type string[] it populates fine but doesn't clear

Content

I have a page variable called serialNumbers of type String[].  It get populated through a value event on an oj-text-input that triggers an action, the action calls a JavaScript module (seen below) which takes the new value, appends it to a list 

  FlowModule.prototype.appendList = function(value, list) {
    list.push(value);

    return list;
  };

The serialNumbers variable is then reset entire (I needed to do this rather than simply appending due to some web service validation and other buisiness requirements).  That works fine and the result displays every serial number entered using the markup below

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!