Oracle表单设置项无效

Oracle表单设置项无效,oracle,oracleforms,Oracle,Oracleforms,当我使用When Validate Item触发器时,如果一个项不为null,它只在我想要验证时执行一次。它给了我一个信息,就是现在出了问题。但现在我可以离开目前的记录了 是否有任何方法将项目的状态设置为无效,以便触发器多次触发。我正在使用多记录规范 下面是一些代码,说明了我的想法: if :system.trigger_item = 'BLOCK.ITEM' then if :BLOCK.ITEM is null then -- set the item invalid ag

当我使用
When Validate Item
触发器时,如果一个项不为null,它只在我想要验证时执行一次。它给了我一个信息,就是现在出了问题。但现在我可以离开目前的记录了

是否有任何方法将项目的状态设置为无效,以便触发器多次触发。我正在使用多记录规范

下面是一些代码,说明了我的想法:

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;

在您的
when validate item
触发器中,如果您的触发器代码成功执行且未引发异常,则Oracle Forms会将该项标记为有效,并允许用户继续

要停止此行为,触发器应引发
FORM\u trigger\u FAILURE
异常(例如,在显示错误消息后)