How to execute program and exit? (OpenInsight 32-bit Specific)
At 10 MAR 2004 12:44:28AM Kauko Laurinolli wrote:
In Arev it was easy to create voc*start and in start program and tell:
if @username=JOE'
perform "MY_PROG"
perform "OFF"
and the report etc. was run and Arev exited.
I have used this to create weekly reports etc. automatically.
In OI I have set entry point which is my custom login window.
All users log in thru that window as username=USER.
The access and PW management is custom written.
How do I now by-pass this directly into some window, execute my weekly reports etc. and exit OI gracefully?
At 10 MAR 2004 03:14AM Donald Bakke wrote:
Kauko,
There are various ways this can be done but the most straightforward one that I can think of in your situation is to create a separate database user with the Database Manager that only you use. Then the CREATE event of your custom login window can check the value of @USERNAME just like you did with AREV.
At 10 MAR 2004 03:36AM Kauko Laurinolli wrote:
Thanks.
At the meantime I dreamed up a solution with different application name inherited from the original application.
Over there I can have different entry point where thar form executes whatever I need to.
At 10 MAR 2004 08:00AM Colin Rule wrote:
To shut down gracefully, use
CALL UTILITY("DESTROY","SYSTEM")
Recommend you put in a YIELD and even a second or two delay before this just to ensure all events are completed.
Colin
At 10 MAR 2004 05:32PM Kauko Laurinolli wrote:
Since all processing happens in Create event End_Window(@Window) seems to also work just fine when the process is run from the batch file.