Simplicty and flexibility!

run daily batch

Started by afonso santos
You will need to Sign In to be able to add or comment on the forum!

run daily batch

Hi all,

I would like to know if is possible to run a DQL procedure or another code ( EXECDQL, MemoEXECDQL) , for example over night, automatically, without an operator interaction.

In fact, the goal is set a time, and run the code automatically ( job scheduling task ) .

Thanks in advance


Written by afonso santos 22/11/21 at 00:16:47 Dataease [{8}]FIVE

Re:run daily batch

Yes. There is a Timer() event on the Form Object in OML.

This is a global event so when used it will be global so no point using different timer() events but rather have one form with it and the event will be executed 10 times a second.

You can use this for controlling anything in an application. There are some known problems with this as DE code is not re-entrant so one have to be careful with what one exectute - try to avoid using Actions etc. 

You can call a ExecDQL or a normal DQL from here.

The only requirment is that the app is open and that the form is open.

There are functions in GetCurrent()/SetCurrent() for checking the status of DE and to activate it if that is necesssary for the execution of your procedure.

Written by DataEase 28/11/21 at 11:23:15 Dataease [{8}]FIVE