Form Print, Notify, and open itself fresh... HELP!!

J

Josh

I am trying to make it so that my users are not able to use the same
form over and over again (as it is causing problems). I want the
functionality in code to Print the document, notify the user via a
message box, and open a fresh version of itself. Here is what I have,
but is not working:


function PrintButton::OnClick(eventObj)
{
XDocument.PrintOut();

XDocument.UI.Alert("Your notification has been sent to the
printer.");
Application.ActiveWindow.Close(true);

var oForm =
Application.XDocuments.NewFromSolution("M:\\CCNTRL\\mtgrec\\MSIPForms\\QualityCheck.xsn");


//form printed and current form closed
//user now must start from fresh form


any help that could be thrown my way is GREATLY APPRECIATED!!!

and on another note... I know that in order to submit to an e-mail
address, MSOutlook must be the default e-mail handler, however I was
wondering if this could be done through code using Lotus Notes as the
email program. I am still in a "crash course" of JS but this has gotta
be possible!?!?!

Thanks again
-Josh
 

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