Professional Documents
Culture Documents
134 135
134 135
Help System
Inbuilt SQLDeveloper
What are major things we are working inside jdeveloper 10 g for OAF
---------------------------------------------------------------------
Connection Navigator :
--------------------
Application Navigator :
------------------------
Structure pane :
-----------------
property Inspector :
-----------------------
map the properties to correspondent item or region
Log Window
-------------------
AM Definition
Window Title
go to project RC rebuild
Go to page RC Run
Rememeber
Delete DELETE
Now you can able to change either runtime connections or database connection
u need to exract and place gt135 folder inside myprojects location in your
system.
if workspace and porject not yet create then create new WORKSPACE AND PROJECT
Variable
1) a varchar c
2) b varchar c
6) b varchar w -- Duplicate
7) x number c
b) 23 4
c) 1 7
e) 3 4 5 6
f) 2 7
g) a,c,f
Remember
Varaible Datatype
ItemId ItemStyle
EnterName MessageTextInput
Password MessageStyledText
Go Button
Always follow id should be meaningfull way either region level or Item Level...
Display Items
----------------
Rich set of component and light weight components and includes rich features
Text Input :
--------------
Button--
for any item apart from submit button -- Enter Action type as fire action to
write item level
triggers in oaf...
Submit button
by default action
For Images
--------------------
Go to css
generray www3schools.com
http://download.oracle.com/tech/blaf/specs/textstandards.html
Regions
--------
2) Naming Standard is RN
5) Regions which are in the same node called it as sibblings and which are in the
Different Regions
-------------------
MessageComponent Layout
Bulleted List :
this container have the probisionary to dispaly the bullet mark for item.
Steps to Subtablayout Region :
-------------------------------
2)
a) Add the Sub Tabs Based on the Requirement
Process:
Now Right Click new -- Link and Enter the Text Property
Process :
RC on the Subtablayout region and select New Region as child , LIke that
add the
equal no of Child Regions based on the tabs which you created in the
subtabbar.
Note :
View Object :
----------------
VO -- Select statement
Readonly VO -- DQL
Updatable VO -- DQL,DML
Poplist or Dropdownlist or Message Choice or PickList Item Steps
-------------------------------------------------------------------
tpidentifier.oracle.apps.applicationshortname.componentname.poplist.server
create vo
7 sub steps
SELECT
LOOKUP_CODE,
MEANING
FROM
FND_LOOKUP_VALUES_VL
WHERE
LOOKUP_TYPE = 'TITLE'
gt135.oracle.apps.po.demomgmt.poplist.server.TitleVO
Go to VO -- RC - Refactor-- Move
gt135.oracle.apps.po.demomgmt.poplist.server
Copy the CalssName
---------------------
Go to VO -- RC - Refactor-- ReName
TitleVO
For Example
LookupCode
Double click on VO -- Select Sql Statement -- Change the query and click Apply
UseCase :
Internal Region :
--------------------
1) Create the item and set the item Style as messageLovInput
tpidentifier.oracle.apps.applicationshortname.lov.server
3) shuttle VO to AM
Navigation
-------------
Double click on AM
4) add vo to internal list of values region using viewinsatnce via wizard option to
correspndent Lov Inuput Item
Navigation
-------------
click next
Select filter the columns based on your interest and shuttle to right
side
Lov Region Item -- Which column you want to return [it will show Lov Region
Item Id's]
Return Item -- Where u want to dispaly in the page item[it will show Page
Item Id's]
Second lov map onwards we required only lov region item and return item
properties
External Regions
--------------------
tpidentifier.oracle.apps.applicationshortname.lov.server
3) shuttle vo to related am
Navigation
-------------
Double click on AM
vIEW INSTANCE
package : tpidentifier.oracle.apps.applicationshortname.lov.webui
Scope : public
AMDefinition : Related AM
6) add vo to Externnal list of values region using viewinsatnce via wizard option
click next
8) Add External List of Values Region to Correspondent Lov INput Bean item Using
External
Lov Property
Second lov map onwards we required only lov region item and return item
properties
and
Improves -- Performace, Resuablity, Maintaince Simple.
item level
Disable Validation :
Dependent Lov
--------------
We can do in 2 ways
Declarative Approach :
------------------------
Remember already 2 lov's created but both the queries one common column sholud
be there
1) Create one Item in the PageLayout Region and set the item Style as FormValue
Return Item
Concepts --
Introduction :
Jdeveloper -- Instal
Page creation
poplist creation
Proramatic Approach
Controller :
------------------
Its plain Java class ,Using this we can capture the User Events or Actions.
Java : Section
Prorgam Signature
documentational Section
single, multiple,documentational
Package Section
Import Section
Class Section
//
/*
Autohr : Venkat
creationDt :
Version :*/
/**
**/
package ind.ap.hyd.yousfuguda
import java.util.Date;
import java.sql.SQLException;
Method Signature :
-------------------
retrun Type :
IN java
------- Datatype variable,Datatype variable
Date date ;
l_res = "Welcome To "+cName;
// return l_res;
}
.
.
..
Refer : http://www.tutorialspoint.com/java/java_basic_syntax.html
AMImpl.java
CO.java
Rule 1 :
-----------
1) Based on method definition we need to return same datatype of values
Call by Value
Call by Reference
Call by Value :
------------------
var x
package hyd.yusufguda;
String address;
myList.add("OAF");
myList.add("ADF");
myList.add("SOA");
myList.add("BPEL");
System.out.println("SIZE OF LIST IS "+myList.size());
return myList;
}
General Rule for no of cases is Using object :
package hyd.common.util;
import hyd.yusufguda.GouthamTech;
if(instName.equals(GouthamTech))
{
inst.address
inst.getListofCourses("xx");
What is Obect :
------------------
Remember :
For Example :
OAApplicationModule am = pageContext.getApplicationModule(webBean);
For Example
ViewObject : SupplierVOImpl
OAViewObject vo =findViewObject("SupplierVO1")
or
For Example :
Remmeber : All Generic classes which belongs to OAF, prefix should be OA , and
suffix should be Bean for all itemstyles or region style
Item Style : OAMessageTextInputBean
Item Id : UserName
Region Id : UserDetailsRN
OAMessageComponentLayoutBean
bean= (OAMessageComponentLayoutBean
) webBean.findChildRecursive("UserDetailsRN");
Controller
------------
Naming standard CO
1) processRequest
--------------------
do get Method
2) processFormRequest :
---------------------------
this phase executes after page loading, should be required human interaction
Note :
OAPageContext (httpRequest) :
------------------------------------
1) to get, put the values from form fields, to get page Context information
loginuser,resp,profile,orgid-- etc
5) Can able to call the pages one page page
OAWebBean (httpResponse)
navigation
if(pageContext.getParameter("SubmitbuttonItemId")!=null)
{
}
how can u validate a item level (Event Listners) inside controller
---------------------------------------------------------------------
Apart Form Submit Button , We didn't get any action fro any other item
Event :
Parameters :
Submit : True
Syntax :
--------
sourceName : ItemId/Region Id
As per standards :
Without parameters ::
----------------------
using object of AM
invokeMethod("methodName")
with parameters :
-------------------
invokeMethod("methodName",params)
to_char(customFunc)
Query Region ;
------------------
Approach 1 :
--------------
Navigation :
------------
Go to Query Region -- RC --
New Region Using Wizard
click next
click next
click next
Search By params :
-------------------------
Width
Record Displayed
Approach 2 :
------------
Navigation :
Navigation :
------------------
Go to Query Region -- RC --
New Region Using Wizard
click next
click next
click next
SELECT
FS.SUPPLIER_ID,
FST.SUPPLIER_SITE_ID,
FS.NAME SUPPLIER_NAME,
FST.SITE_NAME,
FST.ADDRESS_ID,
FST.CARRIER_CODE,
FST.PURCHASING_SITE_FLAG,
FST.PAYMENT_TERMS_CODE,
FS.START_DATE,
FS.END_DATE,
FS.ON_HOLD_FLAG
FROM
FWK_TBX_SUPPLIERS FS,
FWK_TBX_SUPPLIER_SITES FST
WHERE
FS.SUPPLIER_ID = FST.SUPPLIER_ID
and
FS.SUPPLIER_ID like nvl(:1,FS.SUPPLIER_ID)
and
FS.NAME like nvl(:2,FS.NAME)
and
nvl(FS.START_DATE,sysdate) >= nvl(:3,nvl(FS.START_DATE,sysdate))
and
NVL(FS.ON_HOLD_FLAG,' ') = nvl(:4,NVL(FS.ON_HOLD_FLAG,' '))
Onion Sturcture :
------------------
As per Onion Layer , we are buiding VO Based on EO's , this is called updatable
ViewObject
we can map VO's to Binding Layer Using view Instance -- that means we need to
add VO's to AM
Entity Object :
--------------
its a table or view or synonym , Using this we can perform DML Operations
Acessors,create,validateentity,remove,doDML
Must and should hold the WHO Columns which are the tables refered by Enity Object
Navigation :
---------------
New Entity Object
clik next
EntiyObjectName
Package Name
Table Name
Schema Name
clik next
clik next
clik next
clik next
VO Name
Pakcage Name
1) Wizard
Validations :
--------------
BC4J, CO
-----------------
EO -- Declarative
Database
--------------------