Building a 'template' that can support up to 20 pieces of identical equipment. These are displayed using a Flex Repeater which works with all 20 objects and each of the parameters are set up in the instances.
In reality each site has a different number of installed pieces. One site may have 12, the next 7, etc. Is there a way to bind the number of instances shown to a parameter? At the moment I defined all 20 instances and then simply delete the unused ones on each individual site however I'm wondering if there is a better way to do this.
Ideally either the option to add a visibility prop inside each instance or an overall prop that would be 'max number of visible instances'.
I'm sure there's an option to script writing into the instance array but I'm trying to balance keeping this user friendly for handover in terms of long term usability.
Just build this list dynamically based on the number of instances you need via script. That's the common way flex repeaters are used, and is, in my opinion, more maintainable than 20 visibility bindings in an array.