Skip to Content
Former Member
Apr 12, 2017 at 09:29 AM

index is not working for subform


Hi Experts,

I have a subform VALUE_FORM which has VALUE_TABLE in it. VALUE_TABLE has two Columns one is ID and other one is value

I have a node VALUE_DATA which has some records with ID as key, in this table one ID can have multiple values.


records in VALUE_DATA

ID Value

1 Char

1 Num

2 Char

Now i am looping the VALUE_DATA table within Javascript and using loop index setting up the presence of VALUE_FORM


for(var i=0; i<VALUE_DATA.length; i++){

if ( VALUE_DATA.item(i).OBJECT_ID.value == OBJECT_ID ){

xfa.resolveNode(VALUE_FORM+"DATA["+i+"]").presence = "visible";

} }

Now, its working for value i=0 i.e.first records but not for i=1.

Am i doing anything wrong in case of subform. i have also set the property of subform

"Repeat Subform for each data item" but all in vain.

Please help.

Best Regards,