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
Solved

Response Button

Posted on 2003-12-04
5
233 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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 Domino Server Failure 1 187
CopyAllItems causing problem with permissions 3 94
Lotus Domino 9 relay to Office 365 Exchange Online 5 138
Domino Website - Redirection 12 84
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 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