I am stuck with the code and was wondering if someone has any suggestion.
I have a following code that is working and accomplishes what I want; Hides presence of the subform devP4, every time I add new instance.
if
(SubForm1.tblEst.estRow1.txtEst.rawValue.length > 4)
{
for
(var i = 0; i < 4; i++){
var oFisDevice = xfa.resolveNode("Form.subMain.SData.SDev.indVice["+i+"]");
oFisDevice.DDetails.devRes.devP4.presence = "hidden";
}
xfa.layout.relayout();
}
What I cannot figure out is how to set width of the field called txtComments under subform devP6 to 9in, at the same time.
The code I have now is below. It works but sets the width to only first instance. What am I missing?
xfa.resolveNode("Form.subMain.SData.SDev.DevP6.txtComments").w = "9in";
Thank you.