Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Dynamic Tables and Data Service

Avatar

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

03-09-2008

hi 🙂



i have a dynamic table (with add/delete row) buttons,



one of the fields in each row, needs to populate the rest of the fields with first/last/address information.



i understand how the data service works for a single fields, is there a way to do this by adding/deleting rows?



how can i bind them? and how do i ensure that the proper row is populating?



Thanks!

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

03-09-2008

To get the instance of the subform that you are working on you can use this.parent.index. Now when addressing the field the occurance number is on the container subform and not on the field itself. So if you had a Page1 - Subform1 - Row - Object you would use Page1.Subform1.Row[instancenumber].object.rawValue



The only issue is the the [] are illegal in javascript so you can use the syntax:



xfa.resolveNode("Page1.Subform1.Row[" + this.parent.index + "]").object.rawValue



Make sense?

Avatar

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

03-09-2008

hey, thanks! i understand how to get the rawData, but how do i bind it to the data service, to pre populate?

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

03-09-2008

In the binding tab you can click on the repeat subforms for multiple data items.

Avatar

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

03-09-2008

but do i need different invokeButtons for each row? and if so, how do i bind them to each fields, in each row?

Avatar

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

03-09-2008

what happening now is this.



when i enter a user id in the first row, it populates fine. then i add an instance to my table, and a second row comes up. When i enter a user ID into the second row, it updates the user information in both the first and the second rows, not just the second row....