M
MartyO
I need to control the check-in check-out process. When a user opens an
InfoPath form in a SharePoint Form library, if they have NOT checked it out -
I want to send a message that they have to Check it out first and then I want
the InfoPath app to close down. Can anyone tell me what I'm missing here?
This code sends the message, but it doesn't quit InfoPath applicatioin and I
get a runtime error, "Permmission denied. File script.js Line 27" which is
the Application.Quit line of code.
function XDocument::OnLoad(eventObj)
{
if(XDocument.IsReadOnly)
XDocument.UI.Alert("This document is checked out by another user. It will
open in READ ONLY mode.");
else XDocument.UI.Alert("YOU MUST CHECK OUT THIS DOCUMENT BEFORE EDITING");
Application.Quit(false);
}
Thanks for help... tomorrow is my deadline for an answer on this issue! If
you can help you'll be a HERO!!
Marty
InfoPath form in a SharePoint Form library, if they have NOT checked it out -
I want to send a message that they have to Check it out first and then I want
the InfoPath app to close down. Can anyone tell me what I'm missing here?
This code sends the message, but it doesn't quit InfoPath applicatioin and I
get a runtime error, "Permmission denied. File script.js Line 27" which is
the Application.Quit line of code.
function XDocument::OnLoad(eventObj)
{
if(XDocument.IsReadOnly)
XDocument.UI.Alert("This document is checked out by another user. It will
open in READ ONLY mode.");
else XDocument.UI.Alert("YOU MUST CHECK OUT THIS DOCUMENT BEFORE EDITING");
Application.Quit(false);
}
Thanks for help... tomorrow is my deadline for an answer on this issue! If
you can help you'll be a HERO!!
Marty