Forum Post: Re: How To Close "wait-for This-object:showdialog()" Programmatically?

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
So it sounds like this is a .NET form. You can indeed use myDlgForm:Close(). I don't understand when you say "control does not comes to this stage to execute since Wait-for block the ctrl." Obviously you need to call Close() when the report generation process is complete. The question is - how is the report running at the same time that the dialog is being displayed. Is it running async on an AppServer? Is it run by hitting a button on the dialog? If it is async, you would call Close() in your PROCEDURE-COMPLETE event procedure. If it is just something that happens synchronously based on a button click, you run whatever code you need to generate the report and then you call Close() when that returns. So how are you not getting control?

Continue reading...
 
Status
Not open for further replies.
Back
Top