Hello everyone,
I have a little "existential" questions concerning submiting form when they
are in fact content types and not associated with a particular form library.
When submiting to a form library it is easy to establish a data connection
to SUBMIT data, and then just point to the library where I want my forms to
be saved and specify a nomenclature. Easy peasy.
Now, the question is, what is the best practice when the form is in fact a
content type? That is, I don't want the saved form to go a fixed library,
right?
In my case, I would simpy like the form to be submited to the library from
where the user has chosen to fill-in the form. Exmaple:
So if the user selected NEW PROJECT INTIATION FORM from the Project X
library, the form would be submited there.
Is this possible in simple terms? What is the best practice in this case? Is
there a way to do this without the need to have several submission rules,
etc? It would be cool if I could type http://. as the submission library :)
Thank you in advance for all your help!
Regards,
Pedro
RP - 25 Jun 2007 18:55 GMT
Yes it is possible.
Change the URL to submit through the code or from rules editor.
However, the custom library you are saving the form to should have the
infopath form content type associated else it will be just saved as an
XML document.
Hth,
RP
Pedro Innecco - 26 Jun 2007 12:18 GMT
First, my apologies for the double posting.
Thank you for your answer. I do understand that the target libraries must
have the content type associated to it (makes sense!)
Now, would I need to change the submit options to submit through code? Is
this the only option besides rules? For rules, all I can see if the form
designers creating one rule (minimum) for each library they want to support
(uff...).
Regards,
Pedro
> Yes it is possible.
>
[quoted text clipped - 5 lines]
> Hth,
> RP
RP - 26 Jun 2007 18:04 GMT
Unfortunately, I cannot see a way from designer to dynamically change
the folder url.
However, you can do following in the override Submit() OR button click
code to submit to a dynamic url:
FileSubmitConnection fscMainSubmit =
(FileSubmitConnection)DataConnections["main submit"];
fscMainSubmit.FolderUrl = "your url here";
fscMainSubmit.Execute();
Hth,
RP