I am having trouble trying to figure out high level how to dynamically set the number of instances of a flex repeater and how to set the values within each instance. Lets say I just have a Label (text) and a Value (integer) I want to pass into each instance of the repeater. On the template of what I am using for the repeater I have two parameters coming in called Label and Value. I have a flex repeater. What is the next step? Would I go to a binding on the instances and then select something like an expression or an expression structure in order to set the number of instances and set the values for each instance. This is the part I am getting stuck on. In vision I know you can do something similar by using a custom method to write the script and then run the script from the component but you can’t do that in perspective so I am just wondering high level how to start on the right track.
I am also getting the Label property from a named query and this part will be dynamic based on how many rows of the table I am populating Label with. I can correctly bind the instances to this named query and return the correct number of instances along with the correct label per instance. Now I want to populate the value field per instance reading in tag values. How would I actually combine the two together? I cant get the value of the tag from a query so what am I to do?