【问题标题】:Oracle Forms setting item invalidOracle Forms 设置项无效
【发布时间】: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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2014-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-17
      相关资源
      最近更新 更多