Potential flex repeater bug with parameters passed to instances

Hi,
In a script I am dynamically creating a list of instances based on the results of a query:
codesnippet

Here is the getInstance method that I am calling to get the dictionary with the instance’s parameters in it:
getinstance

As you can see in the first attached image, I am logging a string representation of the instances list just before I set the instances property equal to that list, I have confirmed that the list contains the correct values:

However the instances property of the flex repeater component does not have the correct values:

Is this a bug, or am I doing something wrong here?

I got the flex repeater to work as expected. The “selected” parameter of the repeated view was originally an in/out parameter that had a bidirectional binding to a checkbox’s props.selected property. I added another parameter, “selectedIn” and set it to be strictly an input parameter, and changed the original “selected” parameter to be only an output parameter. I bound the value of “selected” to the checkbox’s props.selected, and added a onStartup event to the checkbox which set props.selected to the value of selectedIn. Now when the instances property of the flex repeater is loaded, all of the instances’ parameters seem to have the expected values.

1 Like