Oracle Form Personalization

问题描述 投票:0回答:2

enter image description here

我在表单个性化方面遇到问题,我是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'
             )
sql oracle validation plsql oracleforms
2个回答
0
投票

我想是这样的,]:

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;

0
投票

在“条件”字段中,您没有输入完整的查询。您只需要放置一个布尔表达式(例如您要放置在查询的WHERE子句中)。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.