Re: Dev/2000 Messages

From: Garry M. Filimonov <garry_at_fly.triniti.troitsk.ru>
Date: 1996/09/19
Message-ID: <01bba637$5e7ec900$bf0000c5_at_Garry.triniti.troitsk.ru>#1/1


Piotr A. Szczygielski <party_at_apollo.umcs.lublin.pl> wrote in article <51p6qr$reh_at_helios.man.lublin.pl>...
> Ok - that all works fine. But in one case I can't help. There're two
> blocks: master and detail. When I change a value in detail block and
> then go to the master block without commiting and try to go to the
> next record. Then I have my favourite alert again. I can't check
> the block status in PostBlock trigger because from this trigger
> it's not possible to commit (restricted procedure). So in which trigger
> should I check if there are any changes ? And of course it can't be
> Key-NextBlk when I use a mouse to navigate.

Use ON-CLEAR-DETAILS trigger :

BEGIN
  IF :System.Form_Status = 'CHANGED'
    THEN Post; /* you can to use COMMIT_FORM too */   END IF;
  Clear_All_Master_Details;
END;

-- 
G'luck !
-----------------------------------------
Garry M. FIlimonov
LASU TRINITI, Troitsk, MR, Russia
garry_at_triniti.troitsk.ru
7-(095)-334-0408
Received on Thu Sep 19 1996 - 00:00:00 CEST

Original text of this message