SekharN,
Sorry, I don't mean to be a pest. Here is some additional info:
I reduced my test form to the bare essentials. I have one main subform called Main that contains a sub form called Sub1. Main is defined as flowed and Sub1 is positioned with "Repeat for all data" checked (This time I left the min, max, and initial counts unchecked.
I have one button for adding and instance located in Main. The code behind the button is exactly as follows:
var oSubform = this.resolveNode("Main.Sub1");
var oNewInstance = oSubform.instanceManager.addInstance(1);
xfa.form.recalculate(1);
This results in an error that indicates my subform reference has no properties. When I switch to min count = 1 the button adds a new instance of the subform, (but as you may recall my objective is to not have an initial instance of the subform visible or taking up room which is why I am attempting to do this without a min count = 1).
Using an "_" in front of the sub form name as follows:
_Sub1.instanceManager.addInstance(1);
xfa.form.recalculate(1);
I receive an error message that reads "General Error: Operation Failed".
If this is supposed to work could it be the version of LiveCycle Designer I am using?