zoukankan      html  css  js  c++  java
  • Custom Libraty:Code Samples

    对于随后的所有编码的例子,假设下面是在该事件过程的顶部声明:

    1procedure event (event_name varchar2is
    2form_name varchar2(30) :=
    3name_in(‘system.current_form’);
    4block_name varchar2(30) :=
    5name_in(‘system.cursor_block’);
    6begin
    7
    8end;

    1.强制字段大写:

     1begin
     2if (event_name = ‘WHEN-NEW-FORM-INSTANCE’)
     3then
     4if (form_name = ‘APXVENDR’) then
     5app_item_property2.set_property(
     6‘VENDOR.NAME’,
     7CASE_RESTRICTION, UPPERCASE);
     8end if;
     9end if;
    10end;

    2.更改字段提示:

     1begin
     2if (event_name = ‘WHEN-NEW-FORM-INSTANCE’)
     3then
     4if (form_name = ‘APXVENDR’) then
     5app_item_property2.set_property(
     6'vendor.name', PROMPT_TEXT,
     7'Supplier Name');
     8end if;
     9end if;
    10end;

    3.更改按钮标签:

     1begin
     2if (event_name = ‘WHEN-NEW-FORM-INSTANCE’)
     3then
     4if (form_name = ‘APXVENDR’) then
     5app_item_property2.set_property(
     6'vendors.details', LABEL,
     7'More Details');
     8end if;
     9end if;
    10end;

    4.更改字段背景颜色:

    Code

    5.隐藏字段:

    Code

    6.设置不可更新和插入:

    Code

    7.添加菜单:

    1begin
    2if (event_name = ‘WHEN-NEW-FORM-INSTANCE’) then
    3if (form_name = ‘DEMXXEOR’) then
    4app_special2.instantiate(‘SPECIAL15’,
    5Print Order &Again’, ‘’, TRUE, ‘LINE’);
    6end if;
    7end if;
    8end;

    As with the APP_SPECIAL routines, APP_SPECIAL2 routines support up to
    45 entries spread among the Tools, Reports, and Actions menus, including
    check boxes on the Tools menu. See your Oracle Applications Developer’s
    Guide for more information.

    8.切换工具菜单项:

    Code

    9.为菜单添加逻辑:

    1begin
    2if (event_name = ‘SPECIAL15’) then
    3if (form_name = ‘DEMXXEOR’ and
    4block_name = ‘ORDERS’) then
    5/* Add your Print Order logic here */
    6raise FORM_TRIGGER_FAILURE;
    7end if;
    8end if;
    9end;

    10.要先测试函数or功能已定义:

    Code

    11.如何在EVENT事件中调用外部SP:

    Code

    实例1:

    Code

    实例2:

    ******

  • 相关阅读:
    [原创]中值滤波算法处理位图(C#实现)
    vue3弹窗可以拖曳、放大、缩小、最大化、最小化插件
    请博客园的高手们帮忙看一个问题 为什么 set datefirst 1 写到存储过程中就不起作用了.
    Sql server学习笔记 set 注意事项
    Sql server 学习笔记全局变量
    使用C# 发送Email 邮件方法
    给安装Visual Studio 2010遇到的一些问题建议
    IIS建立网站后显示“403.1禁止访问”的解决方法
    Window xp 换成Windows 7 C盘内留有老的windows 版本提示
    COUNT() 和Count(字段) 区别
  • 原文地址:https://www.cnblogs.com/benio/p/1605556.html
Copyright © 2011-2022 走看看