目标:输入供应商id后,点击zoom按钮,弹出此供应商历史信息。

前期准备:一个forms    name:HEK_PO_SPLHIS_TEST

1.启用ZOOM按钮

Custom.pll : ZOOM小测试Custom.pll : ZOOM小测试Code
 1Custom.pll : ZOOM小测试  function zoom_available return boolean is 
 2Custom.pll : ZOOM小测试
 3Custom.pll : ZOOM小测试    form_name  varchar2(30) := name_in('system.current_form'); 
 4Custom.pll : ZOOM小测试    block_name varchar2(30) := name_in('system.cursor_block');
 5Custom.pll : ZOOM小测试
 6Custom.pll : ZOOM小测试 begin
 7Custom.pll : ZOOM小测试
 8Custom.pll : ZOOM小测试   if
 9Custom.pll : ZOOM小测试   … -- [code from previous exercises]
10Custom.pll : ZOOM小测试
11Custom.pll : ZOOM小测试    --begin add by guozhenbin 2009-11-19
12Custom.pll : ZOOM小测试    elsif (form_name = 'HEK_PO_SPLHIS_TEST'then
13Custom.pll : ZOOM小测试     return true;
14Custom.pll : ZOOM小测试    --end add by guozhenbin 2009-11-19
15Custom.pll : ZOOM小测试
16Custom.pll : ZOOM小测试    else
17Custom.pll : ZOOM小测试    return FALSE;
18Custom.pll : ZOOM小测试  end if;
19Custom.pll : ZOOM小测试

Custom.pll : ZOOM小测试

 

2.定义Zoom触发的事件

 

Custom.pll : ZOOM小测试Custom.pll : ZOOM小测试Code
 1Custom.pll : ZOOM小测试procedure event(event_name varchar2is
 2Custom.pll : ZOOM小测试    --------BEGIN ADD BY GUOZHENBIN 2009-11-19
 3Custom.pll : ZOOM小测试    l_param_to_pass number;
 4Custom.pll : ZOOM小测试    --------END   ADD BY GUOZHENBIN 2009-11-19
 5Custom.pll : ZOOM小测试begin
 6Custom.pll : ZOOM小测试    ifCustom.pll : ZOOM小测试
 7Custom.pll : ZOOM小测试    … -- [code from previous exercises]
 8Custom.pll : ZOOM小测试
 9Custom.pll : ZOOM小测试    ---------- begin add by guozhenbin 2009-11-19
10Custom.pll : ZOOM小测试    elsif (event_name = 'ZOOM'then 
11Custom.pll : ZOOM小测试      if(form_name = 'HEK_PO_SPLHIS_TEST'and (block_name = 'HEK_PO_SPLHIS_TEST'then
12Custom.pll : ZOOM小测试          l_param_to_pass := name_in('HEK_PO_SPLHIS_TEST.VENDOR_ID');
13Custom.pll : ZOOM小测试              
14Custom.pll : ZOOM小测试          if l_param_to_pass is null then
15Custom.pll : ZOOM小测试          fnd_message.debug('vendor id is not null!');
16Custom.pll : ZOOM小测试          elsif fnd_function.test('HEK_PO_SPLHIS'and l_param_to_pass is not null then
17Custom.pll : ZOOM小测试          fnd_function.execute(function_name => 'HEK_PO_SPLHIS',
18Custom.pll : ZOOM小测试                       open_flag => 'Y',
19Custom.pll : ZOOM小测试                       session_flag => 'Y',
20Custom.pll : ZOOM小测试                       other_params => ' P_VENDOR_ID = ' || l_param_to_pass);
21Custom.pll : ZOOM小测试          else
22Custom.pll : ZOOM小测试          fnd_message.debug('function exception!');
23Custom.pll : ZOOM小测试            end if;
24Custom.pll : ZOOM小测试      end if;
25Custom.pll : ZOOM小测试    -----------end   add by guozhenbin 2009-11-19
26Custom.pll : ZOOM小测试end;

Custom.pll : ZOOM小测试

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2021-12-17
  • 2021-05-19
  • 2021-06-10
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2021-07-14
  • 2021-08-10
  • 2021-09-27
相关资源
相似解决方案