Subject Re: [IBO] How to revert from post to edit state in the BEFOREPOST event?
Author Helen Borrie
At 06:57 AM 17/01/2007, you wrote:
>Dear List
>
>
>
>Any pointers on how to exit the post event, in the beforepost, without
>issuing the raise EIB_dataseterror.createwithsender(self '');
>
>
>
>The raise EIB_dataseterror.createwithsender(self ''); works, but I want to
>give the client an option, then continue with post or else return to edit
>state, and continue editing current record.
>
>
>
>The raise EIB. returns to edit state, but without options.
>
>
>
>I wish to bring up a dialog box with options, then either exit to edit
>state, or post as is.

Have the BeforePost call a function that displays the dialog box and
returns the result. If the user selects to return to editing, call
SysUtils.Abort.

>I can call raise EIB., if the person selects to cancel post, but then client
>required to confirm a second time.

I don't understand whether this is an observation or a requirement
but, if it means you want the user to confirm a decision to abort
then have your routine do this before returning the result to the
BeforePost handler.

Helen