Sunday, March 26, 2017
Tuesday, March 21, 2017
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27120: SQL error during query execution.
Create the sequence and grant access to apps
Thursday, March 9, 2017
Application Module not displaying in projects list
Go to
Tools --> Projects Properties --> Project Content --> Jave Content
Add the path where you set your package e.g C:\jdev\jdevhome\jdev\myproject
Go to Exclude tab select path, press button remove and finally press button OK.
Tools --> Projects Properties --> Project Content --> Jave Content
Add the path where you set your package e.g C:\jdev\jdevhome\jdev\myproject
Go to Exclude tab select path, press button remove and finally press button OK.
Saturday, March 4, 2017
Launching an Oracle E-Business Suite Form From a Submit Button in an OA Framework page
If you wish to launch an Oracle E-Business Suite form from a submit button in an OA Framework page, you must use the OAPageContext.forwardImmediatelyToForm(String url) method from oracle.apps.fnd.framework.webui.OAPageContext. An example of how to use this API is shown in the code sample below:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("Apply")!=null)
{
String destination = "form:SYSADMIN:SYSTEM_ADMINISTRATOR:STANDARD:FND_FNDMNMNU"; pageContext.forwardImmediatelyToForm(destination);
}
}
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("Apply")!=null)
{
String destination = "form:SYSADMIN:SYSTEM_ADMINISTRATOR:STANDARD:FND_FNDMNMNU"; pageContext.forwardImmediatelyToForm(destination);
}
}
Tuesday, December 13, 2016
Develop Search Screen / Search Page using Oracle OAF
The search page we are going to create/ developing based upon view only, as we are not going to perform any database transaction. Therefore we don' t need to create an entity object.
In order to create search
page first we need to perform following tasks.
- Creating an application module
(AM)
- Creating a view object
(VO)
- Linking VO to AM
- Testing AM
Creating an application
module (AM)
- Right-click OAMujahidPacktProject
project in the navigator and select New from the pop-up menu.
- Navigate to Business Tier
- ADF Components
and select Application Module.
- Click on Button OK.
Welcome page will display, click Next Button.
- In Step 1 of 4, enter the following details: Package: oracle.apps.fnd.emp.server Name: EmpSearchAM
- In Step 2 of 4, click Next
Button.
- In Step 3 of 4, click Next
Button.
- In Step 4 of 4, check the
Generate Java File(s) checkbox in Application
Module Class: EmpSearchAMImpl to generate the EmpSearchAMImpl java class. (It is
already checked by default.)
- In the Finish window, select
the Finish Button.
- Click Save All Button from the
toolbar.
Creating a view object (VO)
- Right-click the
OAMujahidPacktProject.jpr and select New from the pop-up menu.
- Navigate to Business Tier
--> Adf Business Components And Select View Object.
- Click on OK.
- In Step 1 of 7, enter the
following details:
Package: oracle.apps.fnd.emp.server
Name: EmpSearchVO - Select the Rows Populated by a
SQL Query, with: radio button and select the
Read-only Access radio button as shown in the following screenshot:
- Click Next.
- In Step 2 of 7, enter the
following query in the Query Statement field:
select * from XXHR_EMP_SEARCH_VL
Note: if view does not exist then create it - Click the Test button to test
the query (click on OK when prompted for the
username and password apps/<apps>).
- Click on OK when the Query is
valid message is displayed.
- Click on Next.
- In Step 3 of 7, click on Next.
- In Step 4 of 7, click on Next.
- In Step 5 of 7, click on Next.
- In Step 6 of 7, select the
Never radio button in Updatable as shown in the following
screenshot, and then click Next:
- In Step 7 of 7, uncheck the
Generate Java File checkbox in View Object Class: EmpSearchVOImpl.
- Check the checkbox View Row Class: EmpSearchVORowImpl for both the Generate Java File and Accessors checkboxes, as shown in the following screenshot:
- After completing Step 7 of 7,
click on Next.
- In the summary page, click on
Finish.
- Click the Save All button from the toolbar.
Linking the view object to the application
module(VO to AM)
To link the view object to the application
module, perform the following steps:
- In the Application Navigator tab, double-click the EmpSearchAM application
module in the OAPacktProject -->
Application Sources -->
oracle.apps.fnd.emp.server package.
oracle.apps.fnd.emp.server package.
- In the Application Module
Editor select the Data Model node.
- Expand the
oracle.apps.xxhr.emp.server package, and click on the EmpSearchVO view
object.
- Shift the EmpSearchVO from Available View Objects: to Data Model: by clicking on the > button as shown in the following screenshot:
- Click on OK.
- Click the Save All button from the toolbar.
Testing the application
module (AM)
- In JDeveloper, right-click the
EmpSearchAM application module.
- Select Test from the pop-up
menu.
- Click on the Connect button
when the following Oracle Business Component
- Browser - Connect window
appears:
- After a short while, the Oracle
Business Component Browser (Local) window will appear.
- Double-click on the EmpSearchVO1 node and the browser will bring back data from the view object as shown in the following screenshot:
Creating
the view layer for a query page
We
have created our application module and successfully tested it, now we are
going to create our user interface. We will create a page that allows us to
query data based upon the attributes in our application module.
Creating
Page
- In the Application Navigator tab, right-click on OAMujahidPacktProject.
- Select New from the pop-up menu.
- In the New Page window, set the following page details:
Name: EmpSearchPG
Package: oracle.apps.fnd.emp.webui - Click on the OK button.
Renaming the default region (PG)
- In the Application Navigator tab, click on the EmpSearchPG.xml page
- In the Structure pane, click on the item EmpSearchPG | region1 node.
- Now in the Property Inspector, set the following properties ID: PageLayoutRN
AM Definition: oracle.apps.xxhr.emp.server.EmpSearchAM
Window Title: Employee Search Window
Title: Employee Search A summary of the steps is displayed in the following screenshot:
- Click on the Save All button from the toolbar. Run the page
select Run from the pop-up menu.
The following page will appear with an empty Employee Search region, as we have not added any items to the page just yet. You can see that the page automatically inherits the Oracle EBS branding, look, and feel of other OA Framework pages.
Adding a query region (RG)
- Click the EmpSearchPG.xml in the Applications Manager and the page
components will appear in the Structure pane. - In the Structure pane, right-click PageLayoutRN and select New | Region from
the pop-up menu. - In the Property Inspector, set the following properties:
ID: EmpQueryRN
Region Style: query
Construction Mode: resultsBasedSearch
Include Simple Panel: True
Include Views Panel: True
Include Advanced Panel: True - Click on the Save All button from the toolbar.
Adding a results region (RG) using a wizard
- Right-click on EmpQueryRN in the Structure pane, and select New | Region
Using Wizard from the pop-up menu. - In Step 1 of 4, select the oracle.apps.fnd.emp.server.EmpSearchAM
application module from the drop-down list. - Click on EmpSearchVO1 from the Available View Usages pane, and click on Next.
- In Step 2 of 4, set the values as required (No need to add WHO columns)
- In Step 3 of 4, shift the following attributes from the Available View Attributes to
the Selected View Attributes pane by clicking on the > button: - In Step 4 of 4, set the following values
- Click on Next and then Finish.
- In the Structure pane, click on the EmpResultsRN and set the following properties
in the Property Inspector
Width: 100%
User Personalization: True
Additional Text: Employee Search Results
User Personalization: True
Additional Text: Employee Search Results
Setting item properties
- In the Structure pane, click on the FullName attribute and set the following properties:
- In the Structure pane, click on the EmployeeNumber attribute and set the following properties:
- In the Structure pane, click on the MgrFullName attribute and set the following properties:
- In the Structure pane, click on the MgrEmployeeNumber attribute and set the following properties:
- Click the Save All button from the toolbar.
Search Allowed: True
Sort Allowed: yes
Search Allowed: True
Sort Allowed: yes
Initial Sort Sequence: first
Search Allowed: True
Sort Allowed: yes
Search Allowed: True
Sort Allowed: yes
Testing the page
- Right-click on the EmpSearchPG.xml page and select Run from the pop-up menu.
- Enter some search criteria in the Simple Search parameters region, and click on
the Go Button.
Monday, November 21, 2016
Step by Step OAF Setup for development environment
In our first step we will download correct version of Jdeveloper
with OA Extension. To get the correct version, we will first establish the
version of E-Business Suite (EBS) we are on then download JDeveloper from Oracle Support
and install it.
- Log on to EBS and click on the About this Page link.
- Click on the Technology Components tab
- Version will display to you
- We will download to support support.oracle.com
- Find the note How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x [ID 416708.1]. Type 416708.1 in the search box, and click the search icon.
- Click on the version we require to download
- Click on the Download button to download the correct version to your PC
- Unzip the file into a local directory called C:\Jdev
Note :
You will notice that JDeveloper has created the following three
directories under the C:\Jdev directory (or the directory you chose to unzip it
in): jdevhome—All pages and code we develop. Also, contains the .dbc file to
connect to the database instances. jdevbin—All Jars, executables for Jdev and
FND classes. jdevdoc—Contains all of the Oracle OAF tutorials, the Developer
Guide (HTML), and an explanation of all the classes, methods, and parameters.
Setup Environment Variable
- Right-click on My Computer or Computer, and select Properties from the menu.
- Click on Advanced System Settings to open the System Properties window.
- Click on the Advanced tab.
- Click on the Environment Variables button.
- Select the New button for user variables.
- In the Variable name field, enter JDEV_USER_HOME.
- In the Variable value field, enter the directory of the jdevhome\jdev directory, for example, C:\oaf\jdevhome\jdev as shown in the following screenshot
- Press Button OK.
Transferring DBC from Application Server
In order to connect Jdeveloper to database we need DBC file, now we will transfer DBC file to our local directory for creating database connections with JDeveloper.
- Open WinSCP and connect to the application server.
Creating Shortcut to Desktop.
- Navigate to the directory, C:\oaf\jdevbin\jdev\bin.
- Right-click on the jdevw.exe and select Send To | Desktop (create shortcut).
- Rename the shortcut on the desktop if desired, for example, Jdev R12.
Creating database connections in JDeveloper
To add a database connection,
perform the following steps:
- Start JDeveloper.
- Click on the Connections tab in Applications Navigator.
- Right-click on the Database node, and select New Database Connection.
The new database connection wizard
will now be displayed.
4. Click on Next on the welcome
page and check Skip this Page Next Time if
desired.
5. In the Connection Name field,
type VISR12 (this is just a name for the connection
and can be anything relevant), and
click on Next.
6. When prompted, enter apps in
the username field and the <apps password> in the
password field, that
is, apps/apps and click on Next.
7. Enter the following connection details:
8. Click on the Next button.
9. Click the Test Connection button and then Finish as
shown in the following
screenshot:
Setting up OC4J and project properties
- Open JDeveloper.
- Check the OC4J Settings in Tools | Embedded OC4J Preferences Global Startup.
- Check if the Host Name or IP Address Used to Refer to Embedded OC4J is set to Default Local IP Address, as shown in the following screenshot:
- Press Button OK
Setting
up OAF runtime connection
- Open JDeveloper.
- Navigate Tools --> Project Properties --> Oracle Applications --> Runtime Connection
- Set the following fields:
DBC File Name: C:\Jdev\jdevhome\jdev\dbc_files\secure\VISR12.dbc
User Name: sysadmin
Password: sysadmin
Application Short Name: ICX
Responsibility Key: FWK_TBX_TUTORIAL
4. Press
Button OK
Subscribe to:
Posts (Atom)





























