Skip to Content
0

index is not working for subform

Apr 12, 2017 at 09:29 AM

15

avatar image
Former Member

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.

example:

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

code:

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,

Bhupinder

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers