Writing to an existing, non opened infopath with c#

L

Lu Prodesso

Hi all,
I'm trying to update a date field in an infopath document that is not
openend. Actually I have a repeating table in an infopath document that
creates sharepoint tasks, but when a task is completed in sharepoint I want a
dll update the infopath as well.
Or is it a better approach to have the infopath document update itself with
some event upon opening ?(on open ? or how is it called)
 
B

Ben Walters

Lu,
Your best bet is to check the Sharepoint list in the On_Load event, although
this may slow the load time of the form. If you storing the file on the file
system you should be able to access it as you would a standard XML file.
 
L

Lu Prodesso

Thanks,
Since the existing sharepoint does not have an event on tasks and the
infopath is also in a sharepoint forms library I was thinking on creating
somekind of worker that runs through the tasks every 10 minutes or so. In
this case this dll needs to be able to open the infopath xml and update the
data. Do you think this will work ? and does anyone know any example code to
open this infopath and update it ?
Thanks,
 
B

Ben Walters

Lu,
I'm sorry to say I don't have any sample code, but I don't see why this
wouldn't work, essentially you need to get the form out of Sharepoint using
the sharepoint webservice. Make your changes then upload the updated form
back to the form library. I'll see if I can track somethign down to get you
started but it might be a couple of days before I get back to you I'll keep
you posted.

Cheers
Ben Walters
 
L

Lu Prodesso

Thanks for your time in advance.
--
Lu


Ben Walters said:
Lu,
I'm sorry to say I don't have any sample code, but I don't see why this
wouldn't work, essentially you need to get the form out of Sharepoint using
the sharepoint webservice. Make your changes then upload the updated form
back to the form library. I'll see if I can track somethign down to get you
started but it might be a couple of days before I get back to you I'll keep
you posted.

Cheers
Ben Walters
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top