cancel
Showing results for 
Search instead for 
Did you mean: 

Nesting of subforms in Adobe interactive forms.

Former Member
0 Kudos

Hi,

I have a requirement as follows:

I have an Item no. and for each Item no. i have to display several sub items.

My context is as follows:

Datanode (VN: cardinality 1:1)

.....|___ ItemNode (VN: cardinality 0:n)

................item (VA type string)

......|___ SubItemNode (VN: cardinality 0:n)

................subitem (VA type string)

ItemNode and SubItemNode are on the same level.

I need to display all the Items and for each item i need to display the subitems.

In the BodyPage of the Adobe form i created the following structure in the layout:

Bodypage (Flow content)

...|__SubFormItemNode (Flow content; Allow pg brks)

...........|__SubFormItemData (Flow content; Allow pgbrks; repeat subform)

................|__ ItemTextField

................|__SubFormSubItemNode (Flow content; Allow pg brks)

............................|__SubFormSubItemData (Flow content; Allow pgbrks; repeat subform)

.............................................|__SubItemTextField

However when i run the application i am not able to get the desired output.

The output that i am looking for is as follows:

Item 1

SubItem1 SubItem2 SubItem3 SubItem4

-


-


Item 2

SubItem1 SubItem2 SubItem3 SubItem4

-


-


Item 3

SubItem1 SubItem2 SubItem3 SubItem4

-


-


and so on.

Can anyone please tell me if the Subform nesting is correct. If not how should it be nested.

Any alternate solutions would also be helpful.

Thanks in advance.

Pts will be awarded for helpful answers.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Any solutions ???

Its urgent.

Former Member
0 Kudos

Please Help.

Former Member
0 Kudos

Hi Monis,

For that u have to declare your node as follows.

Now your node looks like that,

Header

@item1

#detai1 #detail2 #detail3

for that u have to declare three subforms. For first subform and second subform types will be table type

and last subform will be table row .

Regards,

Gurprit Bhatia

Edited by: GURPRIT BHATIA on Mar 10, 2008 5:28 AM

Former Member
0 Kudos

Hi Gurprit,

Thanks for replying.

I din't quite understand your solution. Could you please show the exact nesting of the Subforms as i have provided.

Also, i am using designer 7.1 It does not contain the Table type and table row type.

Awaiting your reply.

Former Member
0 Kudos

Hi Monis,

For this node....You have to set following properties of subform.

Datanode (VN: cardinality 1:1)

.....|___ ItemNode (VN: cardinality 0:n)

................item (VA type string)

......|___ SubItemNode (VN: cardinality 0:n)

................subitem (VA type string)

For Datanode and temNode subform type will be flow contained and flow direction will be table.

For Subitem subform type will be flow contained and flow direction will be table row.

And also check "Reapeat Subform for Each Data Item" in Binding properties for both itemnode and Subitem node.

Regards,

Gurprit Bhatia

Former Member
0 Kudos

Hi gurprit.

The Hierarch tab in the designer now looks as follows:

Bodypage (Flow content)

...|__SubFormItemNode (Flow content; Allow pg brks)

...........|__SubFormItemData (Flow content; Allow pgbrks; repeat subform)

................|__ ItemTextField

................|__SubFormSubItemNode (Flow content; Allow pg brks)

............................|__SubFormSubItemData (Flow content; Allow pgbrks; repeat subform)

.............................................|__SubItemTextField

There is no Table and table row options in Designer 7.1. Hence i set the direction to 'Top to Bottom' . But i am not getting the desired output.

Former Member
0 Kudos

Hi Monish,

Monish even i am using NWDS 7.1 . Can u please send me your project i will edit it and send u back to u . I already told in last ans you have to set subflow properties. And for that u have to make 3 subflows second one will be child of first one and third one will be child of second one.

And properties of that nodes like that......

Header node

Type: Flow Content

Flow Direction : Table

item node

Type: Flow Content

Flow Direction : Table Row

Binding: Check this properties ..."Repeat subform for each item "

Subitem node

Type: Flow Content

Flow Direction : Table Row

Binding: Check this properties ..."Repeat subform for each item "

Regards,

Gurprit Bhatia

Former Member
0 Kudos

Hi Gurprit.

I have emailed the project to your Gmail id.