locked
How to track the open document which is opened by another person RRS feed

  • Question

  • User-1024101449 posted

    Hi,

    I have the hyperlink in table. when the user click on the link it suppose to open the document.

    The challenge of the task is, when one person open the document, then the other person should not open the document.

    It should say some alert saying "This person opening the document,pls. contact person to close the doc"

    How to track when person open the document then the other person should get alert message as soon as click the link.

    unless or untill user close the document, then the document link should be enable to open other person.

    How to handle this type of scenario...?

    Tuesday, March 5, 2019 10:17 AM

Answers

  • User61956409 posted

    Hi gani7787,

    How to track when person open the document then the other person should get alert message as soon as click the link.

    unless or untill user close the document, then the document link should be enable to open other person.

    I agree with mgebhard. In ASP.NET Web Application, it is not easy to dynamically control UI displaying (the hyperlink rendering and behavior) by tracing if a user has opened/closed an external document.

    If possible, you can try this workaround: embed and display the document in a web page, and trace&maintain status of that page, if a user click the hyperlink to view the document in that web page, maintain user-document status in somewhere you want (such as in a global variable etc), when user close the web page for finishing viewing the document, you can reset/clear user-document status. If another user want to view/open that web page (document), you can check the user-document status first to determine if he can access that document.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 6, 2019 2:06 AM

All replies

  • User475983607 posted

    This requirement is not reliable (or really possible) in a web application unless this is a SharePoint site or you are using similar technology.  If this is a SharePoint question then please visit SharePoint support.

    https://support.office.com/en-us/sharepoint

    Tuesday, March 5, 2019 1:50 PM
  • User61956409 posted

    Hi gani7787,

    How to track when person open the document then the other person should get alert message as soon as click the link.

    unless or untill user close the document, then the document link should be enable to open other person.

    I agree with mgebhard. In ASP.NET Web Application, it is not easy to dynamically control UI displaying (the hyperlink rendering and behavior) by tracing if a user has opened/closed an external document.

    If possible, you can try this workaround: embed and display the document in a web page, and trace&maintain status of that page, if a user click the hyperlink to view the document in that web page, maintain user-document status in somewhere you want (such as in a global variable etc), when user close the web page for finishing viewing the document, you can reset/clear user-document status. If another user want to view/open that web page (document), you can check the user-document status first to determine if he can access that document.

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 6, 2019 2:06 AM