Consultor Eletrônico



Kbase P82441: Dyn: How to switch session to hour glass state during a save, delete or commit?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/7/2004
Status: Unverified

GOAL:

How to make the session switch to hour glass state during a save, delete or commit?

GOAL:

Where to do SESSION:SET-WAIT-STATE("general") for long table-io save, delete or commit?

FACT(s) (Environment):

Dynamics 2.1A

FIX:

The ADM2 has never taken care of handling the SET-WAIT-STATE() method because most of transactions are pretty short.  For large transactions, one should indeed use it manually with an override of CommitTransaction in your SDO:
PROCEDURE CommitTransaction:
SESSION:SET-WAIT-STATE("general").
RUN SUPER.
SESSION:SET-WAIT-STATE("").
END PROCEDURE.