How to open a form from sharepoint library using jscript

D

DavidE

Hi,

I need to open a form template(xsn) which is locate in a sharepoint library
using jscript. The form has to be open from another form's script from an
event block such button_click.
I use infopath 2003 and sharepoint 2003.
 
D

DavidE

Hi k.Ramana Reddy,

Thanks for your helpfulll solution.
Now, how can I open a specipic form(.xml) by an ID number from a sharepoint
forms library (jscript) ?

David
 
K

K.Ramana Reddy(GGK Tech)

Hi,

To Open specific form from library use below code.

Application.XDocuments.Open(sForm,
(int)XdDocumentVersionMode.xdCanOpenInReadOnlyMode)

where sForm points to the location of the file, for example:

http://sharepoint.company.com/name/XXX.xml.

I hope this will help for you.
 

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