FingPhoto
asked on
Infopath Submit Dataset containing multiple tables to Web Service
Hello,
I am using a web service to query/update SQL tables from InfoPath. I put multiple tables in my dataset, and they show up correctly in Infopath. When I change data in InfoPath, and do Submit, it sends back the DataSet. How does my UpdateCommand function know what info changed? For example, which table.
I had this working correctly when my dataset contained only one table, because the Primary Key was set to point to the modified row. But how does it work now that I have a dataset with mulitple tables.
Thank you!
Dave
I am using a web service to query/update SQL tables from InfoPath. I put multiple tables in my dataset, and they show up correctly in Infopath. When I change data in InfoPath, and do Submit, it sends back the DataSet. How does my UpdateCommand function know what info changed? For example, which table.
I had this working correctly when my dataset contained only one table, because the Primary Key was set to point to the modified row. But how does it work now that I have a dataset with mulitple tables.
Thank you!
Dave
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I eventually got this to work.
I'm new to this and didn't know how the SQLAdapters, tablemapping, etc work, but I've got it figured out now. I was trying to force a single SQLDataAdapter to work with more than 1 table.
I also didn't know that when a InfoPath submits a Dataset back to the web service that that Dataset only contains items that need to change. Is that correct?
I'm new to this and didn't know how the SQLAdapters, tablemapping, etc work, but I've got it figured out now. I was trying to force a single SQLDataAdapter to work with more than 1 table.
I also didn't know that when a InfoPath submits a Dataset back to the web service that that Dataset only contains items that need to change. Is that correct?
ASKER
Thanks.
ASKER