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

oj-bind-for-each error when clearing object array

Received Response
edited Jan 29, 2019 11:01PM in Visual Builder 1 comment


need help with oj-bind-for-each error when clearing object array


I have an array of objects and I am rendering them using oj-bind-for-each with an oj-input-text inside the template. My problem comes when the user clicks a button to begin another search. At that point, we set the object array to a new empty array, so we can load it with fresh results. This is causing an error in the oj-bind-for-each code. (At least, the error goes away if I comment out that code.)

At first, I was getting errors because the fields were not defined in the new empty object array. (It's not defined as a Type, I should probably do that?) I worked around those errors by adding logic in the data section like:

Howdy, Stranger!

Log In

To view full details, sign in.


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