Re: help:how to commit before leaving record

From: <rtproffitt_at_my-deja.com>
Date: Fri, 24 Sep 1999 15:26:12 GMT
Message-ID: <7sg561$7ab$1_at_nnrp1.deja.com>


OPT,
hyvva paiva !

It seems as though you are trying to ask the user to press COMMIT, but then in the ensuing commit process you catch all Changed records and the first one fails the COMMIT, a mutually exclusive process....

Try changing your global to :Global.PressedCommit. Set it to default to N, and have a Key-Commit trigger which sets the flag to Y, then does a COMMIT-FORM.

The if statements in the post-record triggers should say "allow to pass if commit key was pressed" otherwise cause an error. You may need to add "if this is the last record, then allow to pass AND reset the flag back to default"... or try resetting to default N in the key-commit trigger after COMMIT-FORM.

Robert Proffitt
Beckman Coulter
Brea California

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Fri Sep 24 1999 - 17:26:12 CEST

Original text of this message