Friday, November 6, 2009

Differences in R11 and R12 tables

Please go through the below link to find the difference between R11 and R12 tables.

Click here

How to Submit A XML Publisher Report from Script

Follow the steps to Submit A XML Publisher Report from Script

1. Select and assign the layout before submitting the request as below.
l_attached := fnd_request.add_layout ( template_appl_name => 'XXXX'
,template_code => 'MFG_LABEL_PRN'
,template_language => 'US'
,template_territory => 'en'
,output_format => 'PDF'
);

2. Call the Submit_Request API next.
ln_req_id := fnd_request.submit_request (
'mfg', 'MFG_LABEL_PRN ', 'MFG Label', TO_CHAR(SYSDATE), TRUE);

Thursday, November 5, 2009

How to call a Java Stored Procedure from PL/SQL Procedure

Below is an example to call a Java Stored Procedure from PL/SQL Procedure

1. Define a Java Stored Stored procedure as below in the database.

DROP JAVA SOURCE APPS."DirList";

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED apps."DirList" AS import java.io.*;
import java.sql.*;
public class dirlist
{
public static void getlist(string directory)
throws sqlexception
{
try
{
file path = new file( directory );
string[] list = path.list();
string element;
for(int i = 0; i < list.length; i++)
{
element = list[i];
#sql { insert into xx_dir_list (filename)
values (:element) };
} catch (exception e);
{
system.out.ptintln(e.getmeaasage);
}
}
}
}


2. Call the above Java Stored Stored procedure "DirList" from the PL/SQL Procedure as follows.

CREATE OR REPLACE PROCEDURE APPS.get_dir_list (p_directory IN VARCHAR2)
AS
LANGUAGE JAVA
NAME 'DirList.getList( java.lang.String )';
/

Monday, October 12, 2009

XML Publisher Coooool Links

Some links of XML Publisher

Click here

Friday, August 28, 2009

How to Enable "About the Page" in Oracle Application?

In order to enable "About the Page" in Oracle Application following profile needs to be set to Yes.

Profile name : "FND: Diagonistics"

Better try setting the above profile from Functional Administrator.

Sunday, August 23, 2009

Some basics about OAF

1. On click of a button, Process Form Request is executed.
2. Process Request is similar to When-New-Form Trigger in Oracle Form
3. OA Page is loaded using XML Importer
4. In the method processFormRequest of the Controller, you can access the values of the page by using notation pageContext.getParameter("")
5. Application Module is like a connection manager which maintains state of the application.
6. Inside the controller, all the Database Related interactions for example interaction with View Objects happens via Application Module.
OAApplicationModuleImpl oaapplicationmoduleimpl = (OAApplicationModuleImpl)oapagecontext.getApplicationModule(oawebbean);
OADBTransaction oadbtransaction = (OADBTransaction)oaapplicationmoduleimpl.getDBTransaction();

7. processFormRequest
This method is commonly used to react/respond to the event that has taken place, for example click of a button.

8. processRequest
In this method, usually page rendering related code is written. Effectively, each GUI component is a bean that gets initialised duringprocessRequest.

As a start up, identify the VO associated to ur page by using "About this page" link which is enabled through a profile value. Then download all the files from the $JAVA_TOP/oracle/apps//.... to ur local drive.

1. Create a new project and set the classpath of the project to the downloaded files above.
2. Extend the standard VO identified above and change the query associated with it & create a new VO.
3. Use substitutions to replace the original VO with the extended VO.
4. Migrate ur files to the apps server.

How to Enable Personalization link for OAF Pages?

Click here to know how to enable Personalize Page.

ENABLE PERSONALIZATION

Set the value for following profiles
“FND: Personalization Region Link Enabled” to Yes (Minimal will also do but better to set Yes so that you get personalization links for all the regions)
“Personalize Self-Service Defn” to Yes
“Disable Self-Service Personal” to No