Predator
4th March 2010, 07:52
Hi,

Please help on the attachement on how to write scripts to control the exit button in baan session.

Thank you.

Regards,

Mic

NikeNiek
4th March 2010, 09:50
Hi,

You can activate this button in the script using:
execute(abort.program)

And you can use section after.program to do some last actions.

Regards,

rahul.kolhe22
4th March 2010, 11:45
Hi,
You can even use disable.commands(abort.program), in case you dont want the user to close the program using the "close" button for some particular condition.

Regards,
--Rahul

manish_patel
4th March 2010, 12:20
The abort.program choice section can be used.
There are two possible choice subsections: before.choice and on.choice

choice.abort.program:
before.choice:
if condition true then
|do some action
...
|choice.again() for Back to choice field
endif

manish_patel
4th March 2010, 12:25
And you can use section after.program to do some last actions.


The actions defined in the after.program section are not executed if the session is canceled (with choice ABORT.PROGRAM).

Predator
5th March 2010, 15:07
Hi,

Thanks a lot.

Mic