Solved

Response Button

Posted on 2003-12-04
5
227 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 to MS Exchange mailfile migration 4 43
Lotus notes error message 6 94
Switching from Lotus Notes to Outlook 4 46
Installing Lotus Notes on Citrix XenApp 3 105
For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now