0% found this document useful (0 votes)
174 views

OAF - Dynamically Create An LOV Item

1) The document describes how to dynamically create a list of values (LOV) item in Oracle Application Framework (OAF) based on a user's selection. 2) It involves creating an OA workspace and project, an application module (AM) and view object (VO) as ADF business components, an OA page component, and associating the VO with the AM. 3) The VO queries an employee table and the page controller will use the VO to populate the LOV dynamically based on the user's organization selection.

Uploaded by

Mostafa Taha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views

OAF - Dynamically Create An LOV Item

1) The document describes how to dynamically create a list of values (LOV) item in Oracle Application Framework (OAF) based on a user's selection. 2) It involves creating an OA workspace and project, an application module (AM) and view object (VO) as ADF business components, an OA page component, and associating the VO with the AM. 3) The VO queries an employee table and the page controller will use the VO to populate the LOV dynamically based on the user's organization selection.

Uploaded by

Mostafa Taha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

2/21/24, 8:06 AM OAF - Dynamically create an LOV item

LOGIN REGISTER

HOME TRAININGS FUSION BLOG EBS BLOG

AUTHORS CONTACT US

Oracle Gold Partners, our very popular training


packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

SEARCH COURSES

ORACLE APPLICATION SEARCH


FRAMEWORK TRAININGS

OAF - DYNAMICALLY CREATE AN


LOV ITEM
https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 1/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

Details 
FULLY
Category: Oracle Application Framework VERIFIABLE
Published: 23 February 2015 TESTIMONIALS

Oracle Application Development Framework OAF lov listofvalues

dynamic lov creation

f Share Post
Share

Consider, based a condition you need to create an list of values in


OAF, like, show the list of employees / show list of just employee
numbers w.r.t the Organization selected by the user. In such cases one
ORACLE INTEGRATIO
may think of creating the LOV dynamically. The below mentioned steps
SERVICE TRAINING
describe the process of creating the same.
I would like to thanks A
Requirement: To create LOV (List of values) item dynamically in for arranging such a
OAF training program, inst
very helpful throughout t
Step 1: Create a new OA workspace and OA project
Read Full
Create a OA workspace with file name as: CreateLov

Create a OA project with file name as: CreateLov


S
Default package: oaf.oracle.apps.fnd.lov

Once your project is created, double click on CreateLov project and https://www.linkedin.com
select Project content. uppara-

Click on 'Add' button next to the bottom pane in the Project content All Testimonial
and select only that package which you want have in your project.

Click OK and save your project.

​Step 2: Create a ADF Business component - Application Module AM


APPS2FUSION -
Right click on CreateLov project -> click New -> select ADF Business
EVENT LIST
components -> select Application Module

Package: oaf.oracle.apps.fnd.lov.server << Feb 2024 >>


Mon Tue Wed Thu Fri Sat S
AM Name: LovAM
1 2 3
Check Application Module Class: LovAMImpl Generate Java File(s) 5 6 7 8 9 10 1

Step 3: Create a OA Components page 12 13 14 15 16 17 1

19 20 21 22 23 24 2
Right click on CreateLov project -> click New -> select OA components
under Web Tier -> select Page 26 27 28 29

Package: oaf.oracle.apps.fnd.lov.webui

Page Name: LovPG

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 2/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

Step 4: Set Page properties

Select on the LovPG page and go to structure pane where a region of Search ...
type 'pageLayout' and ID 'region1' is automatically created.
Search
Click on region1 in structure page and set the project properties as in
the below screenshot - set all the properties except the controller
class, for now.

ENQUIRE FOR
TRAINING

Step 5: Set new Controller

Select PageLayoutRN in the structure pane -> Right click on it -> Set
new controller

Package: oaf.oracle.apps.fnd.lov.webui

Controller name: LovCO

-- This automatically sets the controller class property in LovPG page


properties

Step 6: Create a ADF Business component - View Object

Right click on CreateLov project -> click New -> select ADF Business
components -> select View Object

Package: oaf.oracle.apps.fnd.lov.server

VO Name: LovVO

Keep click 'Next' until you land at step-5(SQL Statement) of VO


creation.

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 3/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

Paste the following SQL statement in the 'Query Statement' block as in


the below screenshot:

SELECT employee_number, full_name, national_identifier,


email_address FROM per_all_people_f
Enter The Below De
Ensure all the above mentioned column names comes up in the
attributes step in VO creation First Name*

In step-8(Java) of VO creation uncheck all the pre-selected Last Name*


checkboxes and select View Row Class: ViewObjRowImpl ->
Generate Java File -> Accessors check box Accept all other defaults in
Email*
VO creation, click Finish to create the VO under the package specified.

Step 7: Attach VO to AM
Country Code*
After creating VO successfully, we must associate this VO with AM we -None-
have created
Phone*
Right click on LovAM -> Edit LovAM

Select 'Data Model' on the window that pops up


Enter your enquiry*
You should find LovVO listed in the left panel, Shuttle the LovVO to the
right pane to associate it with the LovAM which is displayed as
LovVO1 as in the below screenshot Training of your interes
Click on Apply and OK to save the changes made to LovAM

Enter the Captcha


Step 8: Create ListOfValues Region list in LovPG

Right click on CreateLov project -> click New -> select OA components
under Web Tier -> select Region

Package: oaf.oracle.apps.fnd.lov.webui
Reload
Page Name: LovRN

Next right click on LovRN -> Select table using Wizard.. Submit Reset

On the wizard that pops up click Next.

-> On step 1 of this wizard select the applciation module as


oaf.oracle.apps.fnd.lov.server.LovAM and then select LovVO1 from
the available view usages pane, click Next

-> accept the default settings RELATED ITEMS


-> In the step 3 (view attributes) of the wizard select and shuttle
EmployeeNumber and FullName attributes to the right Integrating OAF

-> Click Next and finish the wizard which creates a table as in the Notifications with
listOfValues region Oracle Workflow

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 4/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

Now, select the FullName attribute from the table created and set its OAF
properties as follows: Personalization
and Extensions A
case study
Add Workflows
Notification
Worklist To Home
Page
OAF
Personalization
and Extensions -
A case study
Basic Concepts -
List of useful
Oracle Apps
Articles
How to extend
root application
module using
nested
application
module
Oracle EBusiness

Suite R12
Step 9: Create LOV item dynamically in LovPG Development
training
Add the code in the following Process Request Function in your
LovCO OA Framework
Screen in SSHR -
HRSSA Workflow -

OAMessageLovInputBean full_name = Part 3

(OAMessageLovInputBean)pageContext.getWebBeanFactory(). OAF Screen in Self


LOV_TEXT, null, "fullname"); Service HRMS -
Without
//fullname kind of an identifier to full_name
Programming -
object
Part 2
webBean.addIndexedChild(full_name); OAF Screen in Self

full_name.setAttributeValue(REGION_CODE,"/oaf/oracle/ap Service HRMS -


Without
full_name.setAttributeValue(REGION_APPLICATION_ID, Programming -
new Integer(20001)); Part 1

full_name.setLovRegion("/oaf/oracle/apps/fnd/lov/webui/ OAF passing


0); parameters from

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 5/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

full_name.setUnvalidated(false); one page to


another
full_name.addLovRelations(pageContext,
Javascript popup
"fullname", "FullName", LOV_RESULT,
window in OAF
LOV_REQUIRED_NO);
with parameter
// FullName is the ID of FullName attribute in passing
LovRN Disabled Inline
Attachment in
full_name.addLovRelations(pageContext,
R12 OAF page
"fullname", "FullName", LOV_CRITERIA,
LOV_REQUIRED_NO); Delete Record
from a OAF
screen

Result: Update records in


table from OAF
On page load &
screen
Open the search popup window and click on 'Go' button: Search records in
a table from OAF
screen
Insert Record in
OAF
Add scrollbars in
OAF
Oracle EBS R12
OA Framework
Training
OAF -
Conditionally
show data by
dynamically
setting VO query
OAF Poplist
Now in the above screenshot you can see that you have both
Filtering
employee number and full name being shown up according to table
How To Get a PDF
created in LovRN. Now select the third entry - A Bakker - and see
what gets loaded onto the Lov item created dynamically - the full name output on Button

should get loaded as we have made FullName as LOV_CRITERIA Click in OAF page
and in LovCO. in R12.2.X – using
XDO/BI Publisher
approach
How To Get a PDF
output on Button
Click in OAF page
in R12.2.X – using
VO approach

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 6/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

Steps Required
for Controller
Extension in
R12.2.X

ROOPA JETR Further video


training tutorials
on R12 OAF
Extension
Where is this OA
 Prev Next  Framework
component

COMMENTS personalized
Importing BC4J
Beginner 2015-03-02 05:09 0
Substitutions in
is not it considered a bad practice to create any R12
component dynamically from CO and attach that into
webean? instead we can use SPEl CLAF Skin- A step
by step demo to
Quote
create new
Custom Look and
Graciela 2022-07-21 03:22 0
Feel Skin
This article will assist the internet viewers for setting CLAF- Custom
up new website or even a weblog from start to end.
Skin - Concepts
for Custom Look
Feel free to visit my site; borgata casino ac nj (Graciela:
https://joeclassifieds.com/index.php? and Feel in Oracle
page=user&action=pub_profile&id=2692452) Self Service
Quote Shared Folders in
OA Framework
Refresh comments list Define
RSS feed for comments to this post Geographies for
Human Capital
ADD COMMENT
Management –
Part 2
NAME (REQUIRED) Define
Geographies for
Human Capital
E-MAIL (REQUIRED, BUT WILL NOT DISPLAY)
Management in
Oracle Fusion
WEBSITE Sample Code -
Add Submit
Button Using OA
Framework
Extension

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 7/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

Add Submit
Button Using OA
Framework
Extension
OA Framework
Extensions
OA Framework
10000 symbols left R12 Extension

NOTIFY ME OF FOLLOW-UP COMMENTS Example


Install tools for
Oracle Apps
Development
Create View
Refresh Object in Oracle
Application
Framework (OAF)-
Demo
Send
XMLImporter in
Oracle
JComments Applications
Framework
ABOUT THE AUTHOR
ROOPA JETR Restart or Bounce
Apache in Oracle
Roopa jetR is an budding OAF developer.
Apps 11i
LinkedIn contact: https://www.linkedin.com/in/roopajetR Creating an Entity
Object (EO) in
MORE ARTICLES FROM THIS AUTHOR
Oracle
Add scrollbars in OAF
Application
OAF Poplist Filtering Framework (OAF)-
Search records in a table from OAF screen Demo
Delete Record from a OAF screen
Update records in table from OAF screen
Insert Record in OAF
Javascript popup window in OAF with parameter passing
OAF passing parameters from one page to another
OAF - Conditionally show data by dynamically setting VO
query

ARTICLES

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 8/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

A AA

LATEST POPULAR OUR COMPANY


ARTICLES ARTICLES
Follow us on twitter
OIC Agent Subscribe to
Join us on Facebook
Installation New Oracle
Failed !!! Apps Articles Self Paced Courses

Incorrect OIC on this Custom home


Username / Website by About Apps2Fusion
Password Email
Corporate Trainings
provided Basic
Finance Transformation Experts
OM & AR Concepts -
Setups In EBS List of useful
R12 Part 3 Oracle Apps
OM & AR Articles
Setups In EBS XML
R12 Part 2 Publisher
Fixed Asset and Data
Flexfields in Template -
Oracle Assets SQL Query to
EBS R12 develop BI
Publisher
Reports

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 9/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

OM & AR OA
Setups In EBS Framework
R12 Part 1 Tutorials
Training
Some
Commonly
QUICK Used Queries
MENU
in Oracle

Follow us on HCM Cloud

twitter

Join us on
Facebook ABOUT
Self Paced APPS2FUSION
Courses
Apps2Fusion
Custom
are
home
passionate
About about Fusion
Apps2Fusion Cloud E-
Corporate Learning and
Trainings classroom

Finance trainings.
Training is
Transformation
Experts our core
business and
we have
been doing
this for many
many years.
We work
hard to
advise
trainees with
right career
paths. We
have
published
various five
star rated
Oracle Press
Books each
was best
sellers in its
category. We
https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 10/11
2/21/24, 8:06 AM OAF - Dynamically create an LOV item

have helped
many and
could help
you as well.

Copyright © 2024. Oracle Fusion Training & Fusion ELearning. Designed by Shape5.com Joomla
Templates

https://apps2fusion.com/old/apps/oa-framework/755-oaf-dynamically-create-an-lov-item 11/11

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy