FORMS BUILDER

1. 本机建立文件夹oraclepll从AU_TOP down  TMEPLATE.FMB \ APPSTAND.FMB   and   PLL 文件放到此文件夹.
 
 2. regedit  注册表 froms_path(hkey_local_machine\software\oracle\froms60_path)  添加 oraclepll 的目录路径
 
 前期的就绪工作就完成了. ....
 
1.打开template.fmb   删除数据块blockname detailname .
2.改画布blockname \ 删除项.
3.建立数据块. (改块跟item'子类信息'属性) 
4.重命名窗口blockname
5. 'app_custom* 程序包主体'  改
package body app_custom is
procedure close_window(wnd in varchar2) is
  /*
    This procedure is called whenever the user closes a window, as
    a result of the WHEN-WINDOW-CLOSED trigger firing. You are responsible
    for supplying unqiue code that addresses the needs of each window, such as
    deferring master-detail relations, or closing related windows.
    Other windows that will be referenced into your form. rely on the default
    code at the beginning and end of this procedure - under no circumstances
    should you modify that code.
  */
begin
  /*
    THE FOLLOWING CODE MUST NOT BE MODIFIED. It prevents windows from closing
    while in enter-query mode.
  */
  if (name_in('system.mode') = 'ENTER-QUERY') then
    app_exception.disabled;
    return;
  end if;
  /*
    YOU MUST MODIFY THE FOLLOWING CODE to account for specific behaviors of your
    form, including:
    1. identifying the 'first window' of the form. and treating
       a close window on that window like a close form.
    2. deferring master-detail relations for detail blocks that
       exist in other windows.
    3. closing other related windows.
    The default code at the end of this procedure actually closes the window.
    If you do that yourself in this code, issue a 'return;' at the end of
    your logic for your specific windows.
  */
  if (wnd = 'SINVTEM') then
    app_window.close_first_window;
  elsif (wnd = '') then
    --defer relations
    --close related windows  
    null; 
  elsif (wnd = '') then
    --defer relations
    --close related windows  
    null;
  end if;
  /*
    THE FOLLOWING CODE MUST NOT BE MODIFIED. It ensures the cursor is not in
    the window that will be closed (by moving it to the previous block if
    needed), and actually closes the specified window.
  */
  if (wnd = get_view_property(get_item_property(:SYSTEM.CURSOR_ITEM,
                              ITEM_CANVAS), WINDOW_NAME)) then
    do_key('PREVIOUS_BLOCK');
  end if;
  hide_window(wnd);
end close_window;
procedure open_window(wnd in varchar2) is
  /*
    This procedure should be called from any code that could result
    in a non-modal window being opened.
  */
begin 
  /*
    YOU MUST MODIFY THE FOLLOWING CODE to account for specific behaviors of your
    form, including:  
    1. Positioning the window to be opened
    2. Resetting master-detail relations for blocks in the window   
    3. navigation to a block in that window
  */
  if (wnd = 'SINVTEM') then
   NULL;
    --position the window
    --reset master-detail relations
    --navigate to a block in the window
    GO_ITEM('SINVTEM.ITEM_NO');
  elsif (wnd = '') then
    --position the window
    --reset master-detail relations
    --navigate to a block in the window
    null;
  elsif (wnd = '') then
    --position the window
    --reset master-detail relations
    --navigate to a block in the window
    null;
  end if;
end open_window;
end app_custom;
 
6. 改 触发器'pre_from' sql :
FND_STANDARD.FORM_INFO('$Revision: 120.0                                                                                                                                              $', 'Template Form', 'FND',
                       '$Date: 2011/09/06 23:25  $', '$Author: catharine $');
app_standard.event('PRE-FORM');
app_window.set_window_position('SINVTEM', 'FIRST_WINDOW');
--FND_ORG.CHOOSE_ORG;
--:parameter.ou_id := fnd_profile.value('ORG_ID');
--app_custom.open_window('SINVTEM');
7.编译.  文件放到au_top 下. 
(ls \cd *** 命令)
  frmcmp_batch template.fmb apps/apps  Output_File=/u1/VIS/vismgr/apps/apps_st/appl/wip/12.0.0/forms/US/template.fmx  
 
8.挂froms.  职责 application developer 下
 
   表单-------功能----菜单----
 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24658529/viewspace-706901/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24658529/viewspace-706901/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
非常抱歉,我是一个文本AI模型,无法提供实时的教程。但是,我可以为您提供一些关于Oracle Forms Builder的基本信息和资源。 Oracle Forms Builder是Oracle公司开发的一个用于创建企业级应用程序的工具。它是一个可视化开发环境,用于构建基于Oracle数据库的用户界面。 如果您想学习Oracle Forms Builder,您可以按照以下步骤进行: 1. 下载和安装Oracle Forms Builder:您可以从Oracle官方网站下载并安装最新版本的Oracle Forms Builder。 2. 学习基础知识:开始学习之前,建议您先了解一些基础知识,例如SQL和PL/SQL。这些是与Oracle数据库交互和处理数据所必需的技能。 3. 学习使用界面:熟悉Oracle Forms Builder的用户界面和主要组件,例如窗体、块、字段和触发器等。 4. 学习创建表单:学习如何创建表单、设计布局、添加字段和触发器,并设置属性和验证规则等。 5. 学习编程:掌握使用PL/SQL编程语言在Oracle Forms Builder中编写触发器和逻辑代码。 6. 学习部署和调试:了解如何部署和调试Oracle Forms应用程序,并学习如何与数据库进行连接和操作。 除了上述步骤,您还可以参考以下资源来学习Oracle Forms Builder: - 官方文档:Oracle官方网站提供了详细的Oracle Forms Builder文档和教程,您可以在官方文档库中找到相关资源。 - 在线教程和视频:有许多在线教程和视频资源可供学习Oracle Forms Builder,***

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值