Hi there,
I have searched around, but I can't seem to find an answer to this problem.
I've created a SharePoint site to hold information relating to specific contracts we have. It's a simple site with several doc libraries, and one form library. The form looks at several data connections on the site in order to get information.
What I''ve then done is saved the site as a template which can be deployed over and over again as a new contract is taken on. This obviously causes problems with the submit routine and the data connections, as they're now looking in the wrong site.
I've managed to sort out the submit, by calling it in code and specifying the URL to submit to, but I can't find a way to do the same with the data connections.
I can't be the only one who's come across this problem. I have found an awfully lengthy code here: http://msdn2.microsoft.com/en-us/library/aa192521(office.11).aspx, but it seems like a really complex way of dealing with a simple problem.
The code I'm using behind the form is VBScript.
Does anyone have any ideas?
Thanks