Link to home
Start Free TrialLog in
Avatar of David Schmalzer
David SchmalzerFlag for United States of America

asked on

Response Button

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?
Avatar of HemanthaKumar
HemanthaKumar

Is this in formula / Script

~Hemanth
In script it is easy just use NotesUIDocument.Close before calling NotesUIWorkspace.Compose method
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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

Avatar of David Schmalzer

ASKER

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.