Showing Infopath Form Version No

P

Paresh

Hi All,

I would like to have a read only field in my infopath form meant for
showing the form version number once I publish my template to the
document library and start creating new documents. This version
number is same as the document version in the sharepoint document
library,
Is this possible?


Thanks,
Paresh
 
P

Paresh

Hello Paresh

You can use the following method to get Version number in the IP form
If you are using Javascript use
XDocument.Solution.Version

and if you are using C# use
thisXDocument.Solution.Version

Hope this will help You
--
Kalyan G Reddy - INFOPATH MVP 2007http://www.ggktech.com







- Show quoted text -

Hi Kalyan,

Thanks for the response. I am not able to reference XDocument rhgouth
my C# code. I guess this is because I am designing a browser enabled
IP form.
If I am correct, is there any equivalent of the solution that you
suggested for finding form version no for browser based IP forms?


Regards,
Paresh
 
P

Paresh

Hi Kalyan,

Thanks for the response. I am not able to reference XDocument rhgouth
my C# code. I guess this is because I am designing a browser enabled
IP form.
If I am correct, is there any equivalent of the solution that you
suggested for finding form version no for browser based IP forms?

Regards,
Paresh- Hide quoted text -

- Show quoted text -

I would like to mention once more thing the the version which we will
get using "thisXDocument.Solution.Version" will be form template's
version no (which we can get using Tools->Form Options->versioning
from infopath designer). This is not what I am looking for.

I want to display the version of the document/form that lies in the
sharepoint document library.

Best Regards,
Paresh
 

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