Dynamic Submit with Infopath browser May 8, 2008
Posted by spunkyvt in Programming, Sharepoint.Tags: InfoPath, Sharepoint
trackback
Ever need to develop an infopath form, but deploy it to another machine and not go through the hassel of Microsofts tool or bringing each form up in infopath and changing location.
First make a data connection and call it ChangeSubmit
Place a button on the form.
In the clicked event from code behind put this code
FileSubmitConnection submit = (FileSubmitConnection)this.DataConnections["ChangeSubmit"];
submit.FolderUrl = “pathtoyourformlibrary”;
submit.Execute();
You can make this much more dynamic, but I just wanted to show the simple version on how to switch this.
Comments»
No comments yet — be the first.