Blog / Oracle Application Blog
OAF Search page
click Workspaces and click create new OAworkspace and name it as
SrilathaSearch. Automatically a new OA Project is also created.
project : SearchDemo
2. Create a New Application Module (AM)
Right Click on SearchDemo > New > ADF Business Components > Application Module
Name : SearchAM
Package : srilatha.oracle.apps.fnd.searchdemo.server
data some data in it (For Testing Purpose)
( — ——————–
— Data Columns
— ——————–
column1
VARCHAR2(100),
column2 VARCHAR2(100),
— ——————–
— Who Columns
— ——————–
last_update_date
DATE NOT NULL,
last_updated_by NUMBER NOT NULL,
creation_date DATE
NOT NULL,
created_by
NUMBER NOT NULL,
last_update_login NUMBER
);
VALUES (‘val1’, ’val2’, SYSDATE, 0, SYSDATE, 0, 0);
INSERT INTO xx_search_demo VALUES (‘val1’, ’val2’, SYSDATE, 0, SYSDATE, 0, 0);
INSERT INTO xx_search_demo VALUES (‘val3’, ’val4’, SYSDATE, 0, SYSDATE, 0, 0);
INSERT INTO xx_search_demo VALUES (‘val5’, ’val6’, SYSDATE, 0, SYSDATE, 0, 0);
custom table
(EO)
SearchDemo > New > ADF Business Components > Entity Object
XX_SEARCH_DEMO
default ROWID will be the primary key if we will not make any column to be
primary key Check the Accessors,
Create Method, Validation Method and Remove Method
New View Object (VO)
New > ADF Business Components > View Object
SearchEO and shuttle them to selected list
select columns Column1, Column2 and shuttle them to selected list
Java file for View Object Class: SearchVOImpl and Generate Java File for
View Row Class: SearchVORowImpl
UI Application Module
> Edit SearchAM > Data Model >
Data Model list
> New > Web Tier > OA Components > Page
Select the SearchPG and go to the strcuture pane where a default region has
been created
properties:
Window
11.
Add a Query Bean to Your Page
click on PageLayoutRN > New > Region
new region region1 and set following properties
– QueryRN
Style – query
Mode – resultBasedSearch
Simple Panel – True
Views Panel – True
Advanced Panel – True
Add a Result Data Table to your QueryRN
QueryRN right click > New > Region using Wizard
BC4J Objects page, Select your SearchAM and then select your SearchVO1
Set and verify Your Results Table Region Properties
– ResultsTable
Style – table
– Please Donot put any AM
– True
Displayed – 10
– 100%
Personalization – True
14. Set or Verify Column1 Item Properties
Allowed — True
Allowed – ascending
Sort Seqence – first
Search Criteria – True
Personalization – True
Allowed – True
Allowed — ascending
Search Criteria – True
Personalization – True
directory
server path where exactly to place the OAF project files into Oracle
Applications server
to Putty
cd $JAVA_TOP command to go to the JAVA TOP directory
the classfiles from local machine to appropriate $JAVA_TOP director
the below import scripts for each and every Page and External Regions to
redirect them to MDS(Meta Data Service) directory
oracle.jrad.tools.xml.importer.XMLImporter
$JAVA_TOP/srilatha/oracle/apps/fnd/searchdemo/webui/SearchPG.xml -username
apps -password apps -rootdir $JAVA_TOP -dbconnection “(DESCRIPTION
=(ADDRESS = (PROTOCOL = tcp)(HOST = <name of HOST>)(PORT = =<port_number>))(CONNECT_DATA
= (SID = SID_NAME>)))”
importing we need bounce the server use the below steps to bounce apache in R12
command in UNIX)
Server
stop
Server
following command in UNIX)
Server
start
form function with property “SSWA jsp function” and webhtml “OA.jsp?page=/srilatha/oracle/apps/fnd/webui/SearchPG
“
Add form function to “Purchasing SuperUser GUI” Menu
Switch
to the responsibility and open the page
created Search page and registered in oracle apps.


















