jojovalenton
3rd November 2014, 08:18
hello,

i just want to ask help on how to do in script the keyboard input like Ctrl-S to automatically save after entering line in the session or any other option that will auto save when the line goes to the next line.

thanks,

jojo

ulrich.fuchs
3rd November 2014, 08:29
Should do the trick:

Syntax:
function void enable.save.on.occ.change ()

Description

Use this function to force the 4GL Engine to save an occurrence at the time the user selects or moves to another occurrence. Any unsaved changes to the occurrence, will be automatically saved. I.e. the UPDATE.DB choice is executed and the 4GL engine will continue in the previous mode (MODIFY.SET or ADD.SET).


Context
This function is implemented in the 4GL Engine and can be used in all script types.

Notes
Use this function only in the after.form.read section.

jojovalenton
3rd November 2014, 08:48
thanks ulrich, this is really nice.