Solved

Response Button

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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