gpt4 book ai didi

Oracle Forms 设置项无效

转载 作者:行者123 更新时间:2023-12-04 05:14:42 24 4
gpt4 key购买 nike

当我使用 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;

最佳答案

在您的 when-validate-item触发器,如果​​您的触发器代码成功执行而没有引发异常,Oracle Forms 会将项目标记为有效并允许用户继续。

要停止这种行为,您的触发器应该引发 FORM_TRIGGER_FAILURE异常(例如在显示错误消息后)。

关于Oracle Forms 设置项无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14440107/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com