我在表单个性化方面遇到问题,我是oracle的初学者当用户访问最终雇用表格并试图终止用户时,EBS和Forms.i需要在HR模块中进行验证。当最终用户单击TERMINATE按钮时,它应检查条件,如果条件为空,则应通过一条错误消息。
我正在使用这些条件
select 'Y'
from dual
where exists (select 'Y'
from pa_expenditure_items_all paei,
pa_expenditures_all pae
where paei.expenditure_id = pae.expenditure_id and
pae.incurred_by_person_id = : person_id and
cost_distributed_flag = 'N'
)
我想是这样的,]:
declare
l_yes varchar2 (1);
begin
select max ('Y')
into l_yes
from dual
where exists
(select 'Y'
from pa_expenditure_items_all paei, pa_expenditures_all pae
where paei.expenditure_id = pae.expenditure_id
and pae.incurred_by_person_id = :person_id
and cost_distributed_flag = 'N');
if l_yes is null
then
message ('Condition is not met');
raise form_trigger_failure;
else
-- Do something; probably terminate that user
null;
end if;
end;
在“条件”字段中,您没有输入完整的查询。您只需要放置一个布尔表达式(例如您要放置在查询的WHERE
子句中)。