Error on opening a Response Document

I have a form “Ticket form”.User writes his/her problem in a text box on that form and press “submit” button which saves the document.After pressing “Submit” a button appears “Add Screen shot”.Behind that button , a response form opens “Screenshots”.The code behind “Add screen shots” button is

@Command([CloseWindow]);@Command([Compose]; “Screen Shots”)

When “Add screen shot” button is pressed , it gives error “No document is selected ; please select a document to respond to.” and database is closed.

when I open it again , then “Add screen shots” button works properly.

why the above error comes?Although the parent doc is already saved behind the first “Submit” button.

Kindly do reply.

Regards,

Aisha Ishrat.

Subject: Error on opening a Response Document

Hi,

In your code… since u close the current document window first -using close window command, u get that error. If u try with @Command([Compose]; “Screen Shots”) alone it will work.

Regards,

Bruno.