on 03-06-2008 2:38 PM
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.
Any solutions ???
Its urgent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.