Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

May I know how to restrict other user from accessing a particular web-based InfoPath form in a document library which was open by a user?
(Suppose that the InfoPath form need to store some value from document library to check before some one opens)

Scenario:
User A open a web-based InfoPath form and enters some value and submit. While User A is still editing the InfoPath form, User B came along and opens the link in the browser and wanted to edit the form. So, is there any way to stop User B from opening the InfoPath form in the browser and inform him/her that the form is open by another user? (It would be nice if the message can tell User B that the document is currently open by User A)
Posted

1 solution

Remember SharePoint is a web application. How would you tell in an ASP.NET web application if a user is viewing a page? Simple put you can't. Although you could track if a user requested a particular resource there is no way for the server to know if the user still has it open, has gone to lunch or moved to another site.

Since the form is rendered to the client browser it doesn't matter if any edits have been made and the form has been updated on the server. Unless the user refresshes the page/form they will not see, or know about, any changes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900