What is this indexed array that you have? The setValue() method only works on components with that method and not on data.
I don’t think it is going to work the way you want, please explain what you are trying to achieve to us so that we can help you finding a better solution.
Thanks for stepping in to help me... I appreciate it!
I have several hundred items of help text that I need to be able to toggle. Each piece of help text is for a specific field in my data structure. I don't want to create several hundred separate variables as they will be very hard to manage.
My app is multi-lingual, so each field is assigned a number, so for example, in my contacts table, first_name is 1000, last_name is 1010, etc. They are non contiguous for lots of important practical reasons.
So my planned implementation for toggling the help text is with a data structure in the database which is basically a non contiguous array of booleans. They are all set to 0 in the database, so like this:
and from that I can read the binary values with the syntax:
show_help.value.1010
However since these are toggle variables, I also need to be able to assign to the boolean value of show_help.value.1010 and this is what I cannot work out how to do.
At this moment it is not possible to set data properties with App Connect. You can create a custom control for your needs or use one of the other existing controls.
I think for you the array component could be a good solution. Just add the items that needs to show to the array using array1.addUniq(item) and array1.remove(item) to hide it again. Then checking if it should show the help you use array1.items.contains(1010).