C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Showing Version number in InfoPath
WhatsApp
Manoj Acharya
13y
7.1
k
0
0
25
Blog
Overview
Showing version number is required while InfoPath forms are being deployed into multiple environments. InfoPath upgrades its own version number each time we publish it. Tracking this version number is vital to make sure that all environments are hosting the latest one. Below is a how to snapshot of that.
Steps
Add a new field (say VersionNumber) to main data source.
Right click on Version number and select properties.
Click on
button next to Value text box. This will open “Insert Formula” dialog box.
Type “ substring-before(substring-after(processing-instruction()[local-name(.) = "mso-infoPathSolution"], 'solutionVersion="'), '"') ” in the Insert Formula window.
Below is a screen shot:
Click OK button to close Insert Formula dialog box and then properties windows.
Drag field “VersionNumber” to your form and place it in a suitable place (say bottom-right corner) and make it read only.
Now publish and upload to hosting environment.
On opening the form it should show you latest version number.
Conclusion
One can compare version number in different environments and can easily find out if a particular environment is hosting a lower version of the form. This is purely meant for development purpose only and hence may not bear any business significance. So one may take out the control before pushing it into prod environment.
Showing Version number in InfoPath
People also reading
Membership not found