Solved

Response Button

Posted on 2003-12-04
5
236 Views
Last Modified: 2013-12-18
I have a button on a form to call up a Response document which is an exact copy of the main form. I don't have it set to inherit so it comes up blank which is what I want. My question is this.  In the button, after the response document is called, I would like the original main document to be closed so as not to cause confusion between the two documents. How can this be done?
0
Comment
Question by:schmad01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9878261
Is this in formula / Script

~Hemanth
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9878267
In script it is easy just use NotesUIDocument.Close before calling NotesUIWorkspace.Compose method
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 250 total points
ID: 9878301
If you have functions in the button then create agent which will run the script above and call it from the command

@Command([ToolsRunMacro]; "ComposeResponse")

The script in the agent would be, (set the Agent to Run once @Command)

Sub Initialize
      Dim ws As New NotesUIWorkspace
      Dim uidoc As NotesUIDocument
      Set uidoc = ws.CurrentDocument
      ws.ComposeDocument "", "", "Response"
      if uidoc.EditMode then uidoc.Save    ' If you want to save the current document
      uidoc.Close
End Sub


0
 
LVL 14

Expert Comment

by:p_partha
ID: 9878371
Hi,
have like this:

when u click on the response document button just close the window
@command([fileclosewindow]);

and in the queryclose  chang eit to formula

@command([compose];"<responseformname>")


Partha

0
 

Author Comment

by:schmad01
ID: 9878439
Works perfect!  Sorry Partha, but with your solution the response would come up every time I closed the document whether I clicked the button or not. But thanks anyway.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes 8.5 1 168
Synchronize IBM notes Internet Password with AD 9 427
Switching from Lotus Notes to Outlook 4 71
Domino Website - Redirection 12 124
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question