Hi Clay,
I saw your post and am hoping you can help me out. I am trying to accomplish something I thought would be simple, but is not turning out that way;
I want a user to be able to fill out an InfoPath form (service request) and for the following things to happen when the submit button is pressed:
1. A request number to be assigned which is visible to the user
2. The request to be logged to a SQL database
3. A workflow to be initiated
I have created an InfoPath form and web service. When the form loads a VSTA procedure handles the FormEvents_Loading event which runs a query is run which gets the next sequential number and displays it on the form (I gave up on the idea of assigning the number on submit). There my troubles start, the ID field is bound to the query datasource and I can't seem to find a way to transfer the value to the submit data source, so the data posted to SQL (this part works great) the ID column is null. The second problem is that when the form is submitted, it is not also saved into the form library, so a second operation is required to save it, and a name has to be provided. So, I have two questions:
1. How can I transfer the sequence number from the query to the submitted dataset
2. How can I get the submit to also save the form, using the sequence number as the "Name"?
By the way, the form is intended to run in the browser, not the infopath client.
Thanks for any help,
Bob