




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Doc Ref: Error! Reference source not found.Error! Reference source not found.July 21,2016Oracle实践 FORM DFF(描述性弹性域)实践Author:张翔龙Xianglong.ZhangE-Mail: xianglong.zhanghand-Creation Date:July 21, 2016Last Updated:July 21, 2016Document Ref:Error! Reference source not found.Version:1.0Note: Title, Subject
2、, Last Updated Date, Reference Number, and Version are marked by a Word Bookmark so that they can be easily reproduced in the header and footer of documents. When you change any of these values, be careful not to accidentally delete the bookmark. You can make bookmarks visible by selecting Tools->
3、;OptionsView and checking the Bookmarks option in the Show region.Approvals:<Approver 1>Xianglong.Zhang<Approver 2>Copy No._Note: To add additional approval lines, press Tab from the last cell in the table above.Note: You can delete any elements of this cover page that you do not need fo
4、r your document. For example, Copy Number is only required if this is a controlled document and you need to track each copy that you distribute.Document ControlChange Record3DateAuthorVersionChange Reference2016-7-21Xianglong.Zhang1.0No Previous DocumentReviewersNamePositionDistributionCopy No.NameL
5、ocation1Library MasterProject Library2Project Manager34Note: The copy numbers referenced above should be written into the Copy Number space on the cover of each distributed copy. If the document is not controlled, you can delete this table, the Note To Holders, and the Copy Number label from the cov
6、er page.Note To Holders:If you receive an electronic copy of this document and print it out, please write your name on the equivalent of the cover page, for document control purposes.If you receive a hard copy of this document, please write your name on the front cover, for document control purposes
7、.ContentsDocument Controlii总体说明1文档目的1内容1(一)利用AD_DD工具包注册表2(二)FORM中添加DF项6(三)启用DF及运行FORM9Open and Closed Issues for this Deliverable12Open Issues12Closed Issues12Note: To update the table of contents, put the cursor anywhere in the table and press F9. To change the number of levels displayed, select th
8、e menu option Insert>Index and Tables, make sure the Table of Contents tab is active, and change the Number of Levels to a new value.Open and Closed Issues for this Deliverable 12Error! Reference source not found.File Ref: ORACLE FORM DFF实践.doc (1. 0 )Company Confidential - For internal use only总
9、体说明文档目的 整理在DFF中的开发步骤细节,总结自己曾遇到的问题点。内容l 利用AD_DD工具包注册表l FORM中添加DF项l 启用DF项及运行FORM(一)利用AD_DD工具包注册表在AD_DD工具包中包含了将表注册到系统中的代码,可以利用hand_plsql_autocreate自动生成脚本,copy到命令窗口运行,即可完成注册。1. DFF开启的前提表中含有ATTRIBUTE的16个字段。2. 利用脚本注册利用hand_plsql_autocreate生成注册脚本。将生成的代码copy到命令窗口执行。注册成功。记得提交事务3. 系统中注册保存后点击列,可看到已启用弹性域字段。4. 在
10、注册表时如果出错了怎么办?此前在建表时因为是手动建的,失误将last_update_date写成了last_updated_date,之后在发现这个错误并将此字段改回时,重新注册表,在这个字段处报错了,提示违反唯一性约束,让我想到可能是因为在之前注册过错误的字段的原因。所以可以找到这个表,删除错误信息。查看AD_DD包,可以看到,注册主要是insert相关表和字段的信息到fnd_tablesfnd_columns两张表中执行以下SQL可以查看到所注册的字段SELECT * from fnd_columns where application_id = (select application_i
11、d from fnd_application where application_short_name = 'XXINV') and table_id = (SELECT table_id from fnd_tables where application_id = (select application_id from fnd_application where application_short_name = 'XXINV') and table_name='XXINV_AUTOMATION_MAP');将其中错乱数据删除(或者直接将这个表对
12、应数据全部删除)提交事务再次注册即可成功。(二)FORM中添加DF项1. 添加DF项名称DF子类信息TEXT_ITEM_DESC_FLEX数据库项否画布AUTOMATION_MAP_STACKED数据块堆叠画布X坐标0Y坐标.25提示NULL2. COPY DF到提示块名称DF子类信息FOLDER_PROMPT_MULTIROW初始值 数据库项否画布AUTOMATION_MAP_STACKED数据块堆叠画布X坐标0Y坐标03. 数据块DF项添加item级触发器WHEN-NEW-ITEM-INSTANCEFND_FLEX.EVENT('WHEN-NEW-ITEM-INSTANCE'
13、;);执行层次:BEFOREWHEN-VALIDATE-ITEMFND_FLEX.EVENT('WHEN-VALIDATE-ITEM');4. 添加或修改block级触发器PRE-QUERYFND_FLEX.EVENT('PRE-QUERY');POST-QUERYFND_FLEX.EVENT('POST-QUERY');WHEN-VALIDATE-RECORDFND_FLEX.EVENT('WHEN-VALIDATE-RECORD');PRE-INSERTFND_FLEX.EVENT('PRE-INSERT');
14、PRE-UPDATEFND_FLEX.EVENT('PRE-UPDATE');5. 添加或修改FORM级触发器WHEN-NEW-FORM-INSTANCE中初始化代码添加初始化代码:-define descriptive flexfield fnd_descr_flex.define(block => 'AUTOMATION_MAP'数据块名, field => 'DF'弹性域字段, appl_short_name => 'XXINV'注册应用,desc_flex_name => 'XXINV_AU
15、TOMATION_MAP'弹性域名);至此,FORM中设置完结。(三)启用DF及运行FORM1. 启用DF搜索应用及标题,点击段。新建一条,输入名称、提示,选择一个弹性域字段作为列,点击保存,点击确定,之后选择打开。当然这里面还可以启用更多的弹性域字段。取消选择必需,保存。返回,取消显示选项,勾选冻结弹性域定义,点击确定,保存后OK。2. 运行FORM查看结果至此,DFF启用完成。 Note: If the Functional Design included a Technical Overview section, duplicate that information here a
16、nd add additional details.Note: Add other components above as requiredNote: Indicate the specific menu options added to access new forms.Open and Closed Issues for this DeliverableNote: Add open issues that you identify while writing or reviewing this document to the open issues section. As you reso
17、lve issues, move them to the closed issues section and keep the issue ID the same. Include an explanation of the resolution.When this deliverable is complete, any open issues should be transferred to the project- or process-level Risk and Issue Log (PJM.CR.040) and managed using a project level Risk and Issue Form (PJM.CR.040). In addit
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 长沙二手房交易合同示例
- 中英俄煤炭购销合同范本
- 江苏省连云港市东海县晶都双语学校九年级化学上册 6.2 二氧化碳制取的研究教学设计 新人教版
- 高中历史 第六单元 近代欧美资产阶级的代议制 第19课 美国的联邦制教学设计 北师大版必修1
- 二手房购买定金合同样本
- 2025联合经营合同
- 商品房买卖合同
- 2025年度光伏发电系统施工及运维合同
- 某城市建设项目启动典礼策划合同2025
- 2025年简易办公室租赁合同模板
- 第八讲 发展全过程人民民主PPT习概论2023优化版教学课件
- 职业教育新型活页式、工作手册式、融媒体教材系统设计与开发指南
- 中国急性早幼粒细胞白血病诊疗指南
- 陕09N1 供暖工程标准图集
- 小型折弯机设计
- 大学英语泛读教程第2册课件Unit-6-Fath
- 复旦棒垒球专项课教学大纲
- 房产中介法律知识及案例分享811课件
- 安全用电-触电与急救课件
- 初三任务型阅读公开课一等奖省优质课大赛获奖课件
- 公司组织架构图(可编辑模版)
评论
0/150
提交评论