developing a page through oa application

10
Developing a page through OA application Developing a page through OA application (JDeveloper) To create a page through Jdeveloper, you need to install suitable patch to run jdeveloper Patch#p5856648 is available to accomplish this Once you are done with Patch extraction then just go to jdev folder and run jdeveloper.exe. To develop a new page through OA application you need to perform following tasks Create a new OA workspace  Create an application module  Create a view object  Edit the application module  Create a web page  Edit page object  Test the page Let’s go through Each and every task one by one There are various steps mentioned below to accomplish creation of a new page. Create a new OA workspace Step1à Open Developer and Click menu File. In structure panel just select Workspace configured for Oracle Applications Step2à When you are done with selection, just provide appropriate or suitable name according the application you are going to build... Directory name should be defaulted from the place where you have downloaded patch if not Please change to the appropriate one.

Upload: chakrapani-salumuri

Post on 07-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 1/10

Developing a page through OA applicationDeveloping a page through OA application (JDeveloper)

To create a page through Jdeveloper, you need to install suitable patch to run jdeveloper Patch#p5856648 is available to accomplish thisOnce you are done with Patch extraction then just go to jdev folder and run jdeveloper.exe.

To develop a new page through OA application you need to perform following tasks• Create a new OA workspace• Create an application module• Create a view object• Edit the application module• Create a web page• Edit page object• Test the pageLet’s go through Each and every task one by one

There are various steps mentioned below to accomplish creation of a new page.Create a new OA workspace

Step1 à Open Developer and Click menu File. In structure panel just select Workspaceconfigured for Oracle Applications

Step2 à When you are done with selection, just provide appropriate or suitable name accordingthe

application you are going to build...Directory name should be defaulted from the place where you have downloaded patch if

notPlease change to the appropriate one.

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 2/10

Step3 à As you say OK it will prompt you to add Project Name since you have already select“Add a New

OA project”. Say next and provide the appropriate or suitable name

In the Above Screen you can see three optional fields (ProjectName, DirectoryName, andDefaultPackage)Please provide Default Package Name like “oracle.apps. <appl_short_name>.module”

Step4 à As you say next it will ask to create database connection at design time .Don’t set sinceyou are

Going to set the connection at “Run Time”

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 3/10

Step5 à In the Runtime Connection part please provide the DBC file name , Username&Password,

Application Short name and the responsibility key

Step6 à Once you are done click on the finish button .It will build the project and required folder Automatically. Please refer below screen

Create an application module

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 4/10

Step1 à Right Click on supplier project and Select New .In the New Gallery Window open thebusiness

tier window and then select Application Module in the Right panel like below

Step2 à The Create Application Module wizard will appear shown in below pic click next

Step 3 à Enter the name in Application module then click next then next

Step4 à Select Generate Java class check box (AMImpl) where you can override method andservices offered

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 5/10

Create a View ObjectStep1 à Right Click on the server node of the package and select view Object from the rightpanel

Step2 à Select new View object, Create View Object wizard will appear

Step3 à Make sure You have selected correct package name and it should be in the server Then you need to provide the correct Name ending with VO

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 6/10

In the Above screen you can create VO either Rows populated by SQL query or

Programmatically …When you select option1 then further you can create VO either updateable or Read

only. When youselect option 2 you can dynamically create

Step4à

Click next until you reach step5 of the wizardStep5 à In the query statement region, write your query according requirement

Step6 à Click on the test button if any error encountered remove then test once againStep7 à Click next until you reached Step8 of the wizard. Here you can see 3 java classes

View Object Class, View Row Class and View Object Definition Class

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 7/10

View Object Class:-- By default Wizard generates view object class but not the view rowclass but you can select both depend upon the requirementsA)Generate Java class:-- When this checkbox is selected, JDeveloper generates a Java fileyou can edit to customize the entity object class' behavior. Otherwise, JDeveloper generates anXML file only. B) Bind Variable Accessors Select to generate typesafe getters and setters for named bindvariables.C)Custom Java Datasource Methods Select to generate custom Java datasource methods

View Row Class:- These settings apply to the ViewRowImpl classA)Generate Java file When this checkbox is selected, JDeveloper generates a Java file that

you can edit to customize the view row class' behavior. Otherwise, JDeveloper generates an XMLfile only.

B) Accessors Select this checkbox to generate accessor methods (for example, getJob() andsetJob()). These accessor methods provide type-safe access to the corresponding attribute fields.They also provide a place to add your own custom code for validation and other uses.

C) Expose Accessors to the Client select to automatically turn all accessors into clientmethods. This will automatically export the client methiods, after which you must edit them usingthe client methods panel.

Extends Click Extends to select view object and row base classes you want to use togenerate the view object. This is useful if you are building view objects on top of a customizedframework.

Edit Application Module:- After creating View Object, you need to relate View object withApplication Module

Step1 à Expand the hierarchy of the project to display OrderDetailsAM like below

Step2 à Right Click and Select Edit OrderDetailsAM and from the Available list of ViewObjects from

the Data model Select OrderDetailsVO

Step3 à After Selecting Shuttle it to Data Model and say “Apply”

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 8/10

Create a Page :- You need to create web page as last objectStep1 à Right Click on the Package and say New ,The new Gallery window will pop up .In the

Categories list, expand the Web Tier Node then Select OA Component then Page

Step2 à As you say Ok New Page box will appear .In the Name Field Please enter Page nameshould be ended with PG

Edit the Page Object:-- Jdeveloper will create Empty Page Object , we need to component asper

Our requirementsSuppose you have a requirement to add query region to the page layoutTo accomplish this we need to follow following steps

Step1 à By Selecting OrderDetailsPG.xml , the object will appear into the Structure window likebelow

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 9/10

Default Component of a page include a region and image

Step2 à Next task would be you need to set page object properties.. Select region1 componentproperties

and set following properties

Property ValueID PageLayoutRN (Since Region Should be ended with RN)Region Style pagelayoutAM Definition oracle.apps.oe.order.server.OrderDetailsAMWindow Title Order DetailsTitle Order Detail informationAuto Footer True

Step3 à Add product brand Image

i) Right Click on PageLayoutRN component.ii) From the Popup select ProductBrandingiii) It will create item1 in the Structure panel like below

iv) Set Following properties to this item1

Property ValueID ProdBrandItem Style Image

8/6/2019 Developing a Page Through OA Application

http://slidepdf.com/reader/full/developing-a-page-through-oa-application 10/10

ImageURL FNDTAPPBRAND.gif

Step4 à Add a region :-- Within a web page you place content within regions.This will create anew empty region

i) Right Click on the PageLayoutRN and select New Regionii) It will create region1 then set following properties

Property ValueID QueryRNRegion Style queryConstruction mode resultsBasedSearchInclude Simple Panel TrueInclude View Panel TrueInclude Advanced Panel True

Step5 à Add a results table to query region

To accomplish this we need to follow below lists of steps

Step a) Right Click on the QueryRN Select New—Region Using Wizard

Step b) In the Application Module Drop down select your created AM

Step c) In Step 2 Set RegionID “ResultsTable” and Region Style “Table”

Step d) In Step 3 ,use Add Button and select all fields and move it to selected View Attributesthen finish

Test Your Page : Once you are done with all the steps .. Right Click on the OrderDetailsPG andsay

Rebuild , if you got successfully compilation Then Run the Page