Solved

Response Button

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

19 Experts available now in Live!

Get 1:1 Help Now