Save Documents Programmatically

P

Paresh

Hi All,

I have been creating a browser based IP form. Is it possible to
control the "save" button's functionality?

I am aware of submitting a document to the form library, but this we
can achieve when the user clicks "Submit" button on the form.
However, I would like this same behaviour but on the "Save" button's
click.

Is this possible?

Regards,
Paresh
 
K

K.Ramana Reddy(GGK Tech)

Hi,

what do you mean by control the "save" button functionality?

When you save infopath form ,the template is saved as XML file on sharepoint
docoment library.So you make a template with fill data in it.When you submit
the form you connect to some datasourse to insert data in database for
example.

Webservice is considered as best submiting datasourse.it is difficult to
make submitting to browser.

So if you want to save the form as the user fill it you should save it on
sharepoint, if you want to collaborate with database you should use submit.
 
D

Dibs

Hi Paresh,

You have a browser enabled IP form and you want to achieve submit
functionality in the Save buttons event. If I have understood your problem
correctly then I should say that you need to write custom code in the Save
buttons eventhandler. But unfortunately, Saving using custom code is not
supported in browser-enabled forms. If you go to Tools - Open and Save
behaviour, you can see that.
The best way solve your problem is to create a button in the form, define a
submit behaviour for the form and call the thisForm.submit() method in the
Button click eventhandler.

Cheers,
Dibs
 

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