Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

Forwarding a form as email and closing form

I have a form I want to be able to forward as an email.  I want the user to open the form, click a button, and have the form placed in an email.  I also want to close the form that was opened, so that when the user finishes sending the email, he will not see the form that was originally opened.  Here's what I have:

@command([compose]; "myform");
@command([mailforward]);
@command([closewindow])

Problem is that the closewindow command closes the forwarded email, not the original form.  I can't find a way around this, and a solution is urgently needed.  Please help!
0
rdd265
Asked:
rdd265
  • 2
1 Solution
 
mbonaciCommented:
Hi rdd265,
use LotusScript:

Sub Click(Source As Button)
    Dim w As New NotesUIWorkspace
    Dim uidoc As NotesUIDocument
   
    Set uidoc = w.CurrentDocument
   
    Call uidoc.Forward
    uidoc.Document.SaveOptions = "0"
    Call uidoc.Close
   
End Sub


Hope this helps,
Marko
0
 
mbonaciCommented:
rdd265,
 If you need the action to create the new doc itself then replace this line:

    Set uidoc = w.CurrentDocument

with this one:

    Set uidoc = w.ComposeDocument( "", "", "myform" )

Hope this helps,
Marko
0
 
Sjef BosmanGroupware ConsultantCommented:
Try with
    @Command([Compose]; "Document");
    @PostedCommand([MailForward]);
    @Command([CloseWindow])
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now