B
Ben Barbour
My document is set up like this:
1) Main datasource has a repeating table with 2 fields
2) Secondary datasource is populated from a webservice that returns a
dataset with the information for this table.
The table is designed to recieve a few records from an SQL database via the
web service on document creation but I do want to duplicate the data into the
main datasource because I need the form to be a "snapshot" of the SQL data
rather than always referencing the table in real time (otherwise I'd just
bind to the data returned by the webservice).
Via rules you can only update the first row (by targetting the field in the
repeating table directly). And so far I've seen out how to programmatically
append new rows to the repeating table but I haven't seen any answers on how
to easily populate these fields.
Is there a way to do this? Would it require getting the records from the
secondary datasource and adding child nodes or something to the main
datasource? I'm struggling with this because I've found next to no
documentation at all on various interfaces available so alot of it is time
consuming trial and error!
Thanks!
-Ben
1) Main datasource has a repeating table with 2 fields
2) Secondary datasource is populated from a webservice that returns a
dataset with the information for this table.
The table is designed to recieve a few records from an SQL database via the
web service on document creation but I do want to duplicate the data into the
main datasource because I need the form to be a "snapshot" of the SQL data
rather than always referencing the table in real time (otherwise I'd just
bind to the data returned by the webservice).
Via rules you can only update the first row (by targetting the field in the
repeating table directly). And so far I've seen out how to programmatically
append new rows to the repeating table but I haven't seen any answers on how
to easily populate these fields.
Is there a way to do this? Would it require getting the records from the
secondary datasource and adding child nodes or something to the main
datasource? I'm struggling with this because I've found next to no
documentation at all on various interfaces available so alot of it is time
consuming trial and error!
Thanks!
-Ben