1
當我使用When-Validate-Item
觸發器時,它只是執行一次,當我想驗證時,如果一個Item不爲null。這是給我的信息,現在出了什麼問題。但現在我能夠離開目前的紀錄。Oracle Forms設置項無效
有什麼辦法可以將項目的狀態設置爲無效,因此觸發器觸發的次數會多一次。我正在使用多記錄規範。
下面是一些代碼,說明我在想什麼:
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;