1
트리거를 When-Validate-Item
트리거로 사용하면 항목이 null이 아닌 경우 유효성을 검사 할 때 한 번만 실행됩니다. 그것은 나에게 뭔가 잘못되었다는 메시지를 전하고있다. 그러나 지금 나는 현재 기록을 남길 수있다.Oracle Forms 설정 항목이 잘못되었습니다
항목의 상태를 잘못으로 설정하는 방법이 없으므로 트리거가 한 번 더 발생합니다. multirecord 사양을 사용하고 있습니다. 트리거 코드가 예외를 발생시키지 않고 성공적으로 실행하는 경우
이when-validate-item
트리거에서
if :system.trigger_item = 'BLOCK.ITEM' then
if :BLOCK.ITEM is null then
-- set the item invalid again, becuase it won´t validate the item again, when
-- there wont appear any change to this item
null;
else
-- the item is valid, do whatever
null;
end if;
end if;