F
foomonkey
I am attempting to build a workflow application using Sharepoint 2003
and Infopath. Here's what I've got:
1. Site collection - main site with 5 sub sites
2. Each site, including the top level, has a Forms Library based on the
same InfoPath template. I actually published the InfoPath form to each
library. (Better way to do this?)
3. Custom event handler on each forms library
4. Windows service to route documents
Here is the process:
1. The event handler on the main site handles Insert events on the
Forms Library. When a new document is inserted, certain data elements
are evaluated and the document should be routed to one of the sub sites
based on this data.
2. The event handler creates a "routing instruction" document (xml
file) on the local drive of the server outside of Sharepoint.
3. The Windows service picks up the routing instructions and copies the
Infopath instance document from it's original location to the
appropriate sub site.
4. The Windows service deletes the original Infopath instance document
from the main site.
So far so good. This all works. Here's where the trouble begins.
If I open the Infopath instance document from it's new location, when I
try to save the document, there is confusion somewhere. I suspect it is
because of 1) the location of the instance document is encoded within
the XML of the document and/or 2) the template on which the document
was based is located on another Sharepoint site which is encoded into
the template as well.
Is it possible to move InfoPath documents around like this and they
will still "work"? I mean, can I edit them, save them, and they go to
the right place?
Thanks!
Andrew
and Infopath. Here's what I've got:
1. Site collection - main site with 5 sub sites
2. Each site, including the top level, has a Forms Library based on the
same InfoPath template. I actually published the InfoPath form to each
library. (Better way to do this?)
3. Custom event handler on each forms library
4. Windows service to route documents
Here is the process:
1. The event handler on the main site handles Insert events on the
Forms Library. When a new document is inserted, certain data elements
are evaluated and the document should be routed to one of the sub sites
based on this data.
2. The event handler creates a "routing instruction" document (xml
file) on the local drive of the server outside of Sharepoint.
3. The Windows service picks up the routing instructions and copies the
Infopath instance document from it's original location to the
appropriate sub site.
4. The Windows service deletes the original Infopath instance document
from the main site.
So far so good. This all works. Here's where the trouble begins.
If I open the Infopath instance document from it's new location, when I
try to save the document, there is confusion somewhere. I suspect it is
because of 1) the location of the instance document is encoded within
the XML of the document and/or 2) the template on which the document
was based is located on another Sharepoint site which is encoded into
the template as well.
Is it possible to move InfoPath documents around like this and they
will still "work"? I mean, can I edit them, save them, and they go to
the right place?
Thanks!
Andrew