您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 其它办公文档 > 06OAF客户化开发实例之FTP服务器信息获取开发实例外传2v1.0
AIMMD.070APPLICATIONEXTENSIONTECHNICALDESIGNFTP服务器信息获取开发实例下册Author:Peng.YangCreationDate:January28,2010LastUpdated:April25,2013DocumentRef:Version:1.0Approvals:Approver1Peng.YangApprover2CopyNo._____MD.070ApplicationExtensionTechnicalDesignii/23DocRef:March20,2013DocumentControlChangeRecord3DateAuthorVersionChangeReference28-Jan-2010Peng.Yang1.0NoPreviousDocumentReviewersNamePositionDistributionCopyNo.NameLocation1LibraryMasterProjectLibrary2ProjectManager34NoteToHolders:Ifyoureceiveanelectroniccopyofthisdocumentandprintitout,pleasewriteyournameontheequivalentofthecoverpage,fordocumentcontrolpurposes.Ifyoureceiveahardcopyofthisdocument,pleasewriteyournameonthefrontcover,fordocumentcontrolpurposes.MD.070ApplicationExtensionTechnicalDesigniii/23DocRef:March20,2013ContentsDocumentControl..................................................................................................................ii开发介绍...................................................................................................................................1概述....................................................................................................................................1完成的目标........................................................................................................................2XP操作系统JDEV环境配置..............................................................................................3步骤1:创建OA工作台和OA项目..............................................................................5步骤2:设置项目的运行选项...........................................................................................6步骤4:创建初始页..........................................................................................................8步骤5:程序部署到EBS应用服务器中..........................................................................15步骤6:OAF控制器中的日志查看................................................................................18步骤7:如何找到页面所对应的源文件.........................................................................18OpenandClosedIssuesforthisDeliverable....................................................................20OpenIssues.....................................................................................................................20ClosedIssues..................................................................................................................20MD.070ApplicationExtensionTechnicalDesign1/23DocRef:March20,2013开发介绍概述本文当讲述了如何实现OAF服务器信息获取页面功能。MD.070ApplicationExtensionTechnicalDesign2/23DocRef:March20,2013完成的目标完成此开发之后,需要掌握如下的课题:OAF开发环境搭建了解OAF框架的了解OAF开发规范遵循OAF页面的基本布局通过编写必要的程序实现页面直接的JSPForward启用WarnAboutChanges功能,帮助用户减少不必要的数据丢失工作实现实体对象、实体属性和行级的业务逻辑(包括抛出属性和行级的验证异常)在业务逻辑中使用视图对象验证和应用模块验证在基于实体对象的视图对象中添加一个新的行处理按钮的动作确保应用程序在使用浏览器中的Back按钮是安全的MD.070ApplicationExtensionTechnicalDesign3/23DocRef:March20,2013XP操作系统JDEV环境配置创建目录结构在jdev_install_dir\jdev目录下创建两个文件夹分别为myprojects和dbc_files,为了保持和ebs服务器一致,则在dbc_files下创建secure文件夹用于存放HostName_SID_Name.dbc文件,如下图所示。设置JDEV_USER_HOME环境变量1.选择我的电脑,右键选择属性2.在系统属性对话框中,选择tab高级页3.在高级tab页中选择环境变量按钮4.在环境变量对话框中,选择新建按钮创建用户变量5.在新建用户变量对话框中,输入变量名:JDEV_USER_HOME变量值:jdev_install_dir\jdev,例如:我在这里设置的变量值为:D:\JDeveloper9iCU3\jdevhome\jdev6.保存设置MD.070ApplicationExtensionTechnicalDesign4/23DocRef:March20,2013从ebs服务器上下载dbc文件到本地并进行修改ebs服务器中dbc文件所在位置:$FND_TOP/secure/HostName_SID_Name.dbc将erpuat_uat.dbc下载下来,将里面APPS_JDBC_URL=后面的内容反斜杠全部去除,即如下:APPS_JDBC_URL=jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=erpuat.yangpeng.com)(PORT=1522)))(CONNECT_DATA=(SID=UAT)))然后将该dbc文件放到$JDEV_HOME\jdevhome\jdev\dbc_files\secure路径下,例如我当前路径如下:D:\JDeveloper9iCU3\jdevhome\jdev\dbc_files\secure创建快捷方式为了方便快速启动,为jdev_install_dir\jdev\bin\jdevw.exe创建桌面快捷方式添加下面两个职责给自己的ebs用户以便开发和测试1.OAFrameworkToolBoxTutorial(职责关键字:FWK_TBX_TUTORIAL),即OAFramework工具教程2.OAFrameworkToolBoxTutorialLabs(职责关键字:FWK_TOOLBOX_TUTORIAL_LABS),即OAFramework工具教程:练习。启动Jdeveloper,并配置数据库连接和用户打开Jdeveloper后,ConnectionsDatabaseNewConnection或更改已新建过的连接如下:Type下ConnectionType为Oracle(JDBC)Authentication下Username为apps,Password为apps,Role为NormalConnection下Driver为thin,HostName为erpuat.yangpeng.com,JDBCPort为1522,SID为UAT然后TestConnection看是否可以连上,如果连上则显示Success!MD.070ApplicationExtensionTechnicalDesign5/23DocRef:March20,2013步骤1:创建OA工作台和OA项目选择FileNew打开新建对话框。从新建对话框中选择GeneralWorkspaceConfiguredforOracleApplications,确定进入NewOracleApplicationsWorkspace窗口,输入文件名CUX_Uploadfile_OAWorkspace.jws,并选择AddaNewOAProject,如下图确定后进入OracleApplicationsProjectWizard对话框,更改FileName和DefaultPackage分别为:CUX_Uploadfile_OAProject和oracle.apps.cux.yp.uploadfile。MD.070ApplicationExtensionTechnicalDesign6/23DocRef:March20,2013保留第二步的默认值,直接进入第三步,指定DBC文件路径、Application用户名和密码步骤2:设置项目的运行选项选择CUX_Uploadfile_OAProject项目,鼠标右键选择ProjectProperties进行选项设置。选择OracleApplicationsRunOptions设置页,选择OADeveloperMode和OADiagnostic项到SelectedOptions中。在运行期间OADeveloperMode提供了而外的代码检查和标准检测;OADiagnostic使运行出来的页面顶部有全局按钮Diagnostics按钮,这个选项覆盖了其它几个对应的预制文件。MD.070ApplicationExtensionTechnicalDesign
本文标题:06OAF客户化开发实例之FTP服务器信息获取开发实例外传2v1.0
链接地址:https://www.777doc.com/doc-6123872 .html