【发布时间】:2013-01-04 14:15:54
【问题描述】:
当我使用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;
【问题讨论】:
标签: oracle oracleforms