Easy to Create, Easy to Change - Easy to use!


How do I close a document from another document?


Started by Oleg Ivanov
Search
You will need to Sign In to be able to add or comment on the forum!

How do I close a document from another document?

Hi!

I have a "hub" form that I used to operate my application and from this hub you open a lot of other documents for information/reporting etc. I also run DQL's for processing that need a List Records for sorting and hence get a Body that needs closing manually. As this is very "annoying" it would be nice if this could be managed remotely.

Any ideas anyone?

Written by Oleg Ivanov 13/01/14 at 09:35:47 Dataease [{8}]FIVE

Re:How do I close a document from another document?

You are pointing out something that we have been discussing on and off for the last 24 months, and today we discussed it again and decided to put it on the shortlist for new functions as it fits very well with how we view DataEase development now (8.x/DG3).

Before it was very much pull only, but now we are thinking pull/push where all the new SetClass functions and Memo functions are Push.

We are already using a lot of Open/Close logic to insure that we can re-open forms with new filtering/search, but sometimes it would be great to be able to do a proper clean-up remotely.

At the discussion today we also discussed complimentary functions to Wait(). Wait() do exactly that, wait a certain amount of time before it proceeds. It would be nifty if one could execute a Timer event too, so we decided to implement

Timer() and TimerTime() where the difference is that the first one is a countdown timer in seconds, when the second one is an "Alarm clock" i.e. you tell it a time in the next 24 hours you want it to fire.

The new document close function will be named DocumentCloseName() where you tell it which document you want to close.

Ex. retval := DocumentNameClose("AddressView2") .

The combination of Timer and DocumentClose() will be unbeatable...he,he.

Ex. retval := Timer(5,DocumentNameClose("AddressView"))

You can't say we aren't having fun!

DocumentCloseName() will be ready in a day or two, so we won't spend any time explaining how you can work around the problem you have listed below as the new solution will be way better ;-)

Written by DataEase 14/01/14 at 22:41:25 Dataease [{8}]FIVE

Re:Re:How do I close a document from another document?

Version 8.1.1.1444 contains DocumentCloseName() that will solve your problems. You can download it from the download centre above.

Written by DataEase 16/01/14 at 09:19:44 Dataease [{8}]FIVE