var propOptSubformID = "8011"
var propSubformName = Concat("SubformPropOption",propOptSubformID,".instanceManager") //since instanceManager is object
$.resolveNode(propSubformName).setInstances(1)
I get:
I can't seem to find a way to use the instanceManager and successfully reference a subform using a string. Any ideas?
I want to avoid using conditional statements or switch if possible. I have 35 different subforms eachl with 0 instances. I want to identify one of the subforms using a variable (string) and make it exist. There has to be a way to do this, right?
I may have to name all the subforms the same and use an index--but I would like to avoid that, Or, I suppose I could loop through the siblings and compare my string to the subform name--but I think this might end up having the same problem. It would be really good to know how to do it with a string and the instanceManager..
Thanks,
Stephen
PS, I also tried
var propSubformName = Concat("SubformPropOption",propOptSubformID,".instanceManager.setInst ances(1)")
$.resolveNode(propSubformName)
and... Nothing happens? No error and no subform either?