Friday, 10 April 2020

Create lov using oaf personalization

Create lov using oaf personalization

In this post , We will be discuss about Create lov using oaf personalization. We will learn how we can create the custom lov in oaf page using personalization. Using OAF personalization , We can create new field in OAF page and then attach the custom lov to this new field in oaf personalization. OAF personalization helps to attached the customer lov to any OAF page field. Here below is the detail about create lov using oaf personalization.

Step by Step to Create lov using oaf personalization

Step1:- I am taking example of Supplier Creation page, where I will show how we can attach Custom LOV in Oracle standard pages with doing customization in the standard page and user can select the value from this LOV during supplier creation in OAF page.

This will be long topic so I will split this topic in two parts.
Create workspace in Developer.
Create lov using oaf personalization
Step2 :- Give the name of your Workspace as below.
Create lov using oaf personalization

Create lov using oaf personalization


Now you can see below your workspace and project has been created.

Create lov using oaf personalization


Now right Click on Project RohitExternalLOV è New

Create lov using oaf personalization


Click on OA Components è Select Region as below.

Create lov using oaf personalization



Give the name of Region and chose the Package Directory Carefully.

Oracle.apps.xxap.RohitExternalLOV.webui

Create lov using oaf personalization


When you will create region then as below you can see that region structure.

Create lov using oaf personalization 

Now Again right Click on Project RohitExternalLOV è New èADF Buisness Components è View Object


Create lov using oaf personalization


To Learn OAF Online from Beginning , Please go to the OAF Tutorial


Give the name of View Object and chose the Package Directory Carefully.

Oracle.apps.xxap.RohitExternalLOV.server

Create lov using oaf personalization



Put the sql query which will select value in your LOV.

Create lov using oaf personalization

Create lov using oaf personalization



Now Again right Click on Project RohitExternalLOV è New èADF Buisness Components è Application Module.


Create lov using oaf personalization


Give the name of View Object and chose the Package Directory Carefully.

Oracle.apps.xxap.RohitExternalLOV.server

Create lov using oaf personalization


Select RohitExternalLOVVO under this AM as below.

Create lov using oaf personalization




Now go back to region then click on RohitExternalLOVRG  . When you click on Region then below you can see structure of this region as below. Right click on this structure RohitExternalLOVRG è New è Table.

Create lov using oaf personalization



Now your table object has been created under RohitExternalLOVRG region. Click on this table object and on right hand side you will see Property Inspector. Change the name of the Table object there as below.

Create lov using oaf personalization



Now again right click on Table RohitExternalLOV as below è New è messageStyledText.

Create lov using oaf personalization



Then Item1 is created under table as below. Click on Item1 and change the name of item in Property Inspector as below

Create lov using oaf personalization


Click on Item1 and change the name of item in Property Inspector as below

Create lov using oaf personalization


Create lov using oaf personalization


Now again right click on Table RohitExternalLOV as below è New è messageStyledText

Then Item1 is created under table as below. Click on Item1 and change the name of item in Property Inspector as below

Create lov using oaf personalization



Click on Item1 and change the name of item in Property Inspector as below Supplier Name.

Create lov using oaf personalization



At last your Region Structure will be look like this.


Now again click on Top Region Structure RohitExternalLOVRG and to its Properties.

Create lov using oaf personalization



In Property Inspector Under BC4j Select AM definition for this region which we created Earlier.

Oracle.apps.xxap.RohitExternalLOV.server.RohitExternalLOVAM

Create lov using oaf personalization



Now Click Item1 (ExternalSupplierNo) and in properties select View Instance

Create lov using oaf personalization


Create lov using oaf personalization

Create lov using oaf personalization


Now Click Item2 (SupplierName) and in properties select View Instance

Create lov using oaf personalization





Now everything is competed in J-developer side. Now we will register/import this Region and View object in Oracle apps and then go that page where we want to attach this LOV region and this LOV.

Use Below Script to Import OAF Objects in Oracle apps.

java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/oracle/apps/xxap/RohitExternalLOV/RohitExternalLOVVO.xml -rootdir $JAVA_TOP -username apps -password apps -dbconnection " (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST= host_nAME)(PORT=1223))(CONNECT_DATA=(SERVICE_NAME=SERVICE_NAME)))"
java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/oracle/apps/xxap/RohitExternalLOV/RohitExternalLOVAM.xml -rootdir $JAVA_TOP -username apps -password apps -dbconnection " (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST= host_nAME)(PORT=1223))(CONNECT_DATA=(SERVICE_NAME=SERVICE_NAME)))"
java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/oracle/apps/xxap/RohitExternalLOV/RohitExternalLOVRG.xml -rootdir $JAVA_TOP -username apps -password apps -dbconnection " (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST= host_nAME)(PORT=1223))(CONNECT_DATA=(SERVICE_NAME=SERVICE_NAME)))"

This is our Supplier Creation Page where I want to see Custom LOV of External Supplier No so that user can select that Number during supplier creation in Oracle.

Create lov using oaf personalization
First of all we get to know which VO object is working behind this suppler creation page for this you need to click on About this page and then expand all.
You need to search with Supplier form any field to get the VO working for that fields. In our case we got that HzPuiOrganizationProfileQuickVO is working on supplier page.
Create lov using oaf personalization
Click on Personalize ‘Organization Quick code link in Supplier Page
Click on Create Item as below.
Create lov using oaf personalization
Select Level – Site and Item Style – Message Lov Input.
ID= Any name you can give without spaces.
External LOV- Path of your Custom VO which you create in Jdev.
/oracle/apps/apexp/RohitExternalLOV/server/RohitExternalLOVVO.
Prompt:- External Supplier No.
View Attribute = Attribute2 (DFF Field)
View Instance = HzPuiOrganizationProfileQuickVO
Create lov using oaf personalization


Create lov using oaf personalization



Now again under External Supplier No LOV input field è click on create item for Lov mappings.


Create lov using oaf personalization



Level =Site
Item Style= Lov Map
ID= Any Id without space
Criteria Item= ExternalSupplierNo ( LOV item created in JDev)
LOV Region Item= RohitExternalLOV (LOV Region name created in JDeveloper)
Return Item = XX_EXTERNAL_SUPPLIER( LOV Input item created in OAF page by personalization in previous step)

Create lov using oaf personalization


LOV Region Item

Create lov using oaf personalization

Criteria Item

Create lov using oaf personalization



After the personalization we can see below , External Supplier No is started showing in the Supplier Creation Form in Oracle Standard OAF page.

Create lov using oaf personalization


Create lov using oaf personalization

1 comments:

Ramkumar said...

Alladinchaav Broo.. Clear step by step process

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *