Steps To Migrate Personalizations in OAF
Steps To Migrate Personalizations in OAF
Steps To Migrate Personalizations in OAF
1. Set profile option "FND: Personalization Document Root Path" with the
location (path) of the server where personalization should be extracted before
exporting personalization.
2. Go to Functional Administrator.Click on Personalization tab.
3. Under Import/Export click on Personalization Repository.
4. Give Document Root Path as "/oracle/apps/pos/supplier/webui" and
press Go.Page will display all the Personalizations.
5. Select all the listed Personalizations which you want to export and press Export to
File System.
6.
o Set profile option "FND: Personalization Document Root Path" with the
location (path) of the server (from where personalizations will be imported)
before importing personalizations.
o Copy .tar file to middle tier directory pointed by "FND: Personalization
Document Root Path".
o Run " tar -xvf xxPersonalizations.tar ".
o Go to Functional Administrator.Click on Personalization tab.
o Under Import/Export click on Exported Personalizations.
o Click on Import from File System as shown in the following screenshot
Note: Instead of using Functional Administrator you can also use java
oracle.jrad.tools.xml.importer.XMLImporteralso to upload Personalizations.
You can either use the GUI interface in “Functional Administrator” (Personalization tab) to
transfer personalizations, or can invoke the XMLImporter/XMLExporter commands directly
from the command line. The Export tool allows you to export a package or xml file (along with
translation information) from the MDS repository of a database instance to a .xml file (or .xlf file
for translations). The command line Export tool is necessary if you wish to perform bulk
translations of personalization documents.
This post provides the below detailed steps how to transfer personalizations from one instance to
others using the XMLImporter/XMLExporter tool.
Go to the page you want to copy the personalization from and click the “about this Page” link at
the bottom of the page. You will see the page name with full path which starts with
/oracle/apps/<prod>.
Ex: /oracle/apps/icx/por/wf/webui/ReqLinesNotificationsRN
1set serveroutput on
2exec jdr_utils.listCustomizations('<full document name from step 1>');
Example:
set serveroutput on
1exec
2jdr_utils.listCustomizations('/oracle/apps/icx/por/wf/webui/ReqLinesNotificat
ionsRN');
Output:
/oracle/apps/icx/por/wf/webui/customizations/site/0/ReqLinesNotificationsRN
Note: If there are multiple records returned by this command, you will need to use export/import
each item individually that you wish to export. You may also find there are records returned for
seeded personalizations provided by Oracle which do not need to be exported.
Example:
java oracle.jrad.tools.xml.exporter.XMLExporter \
1/oracle/apps/icx/por/wf/webui/customizations/site/0/ReqLinesNotificationsRN -
username apps -password w3lcome123 \
2-dbconnection "(description=(address_list=(address=(protocol=tcp)
3(host=myhost)(port=12345)))(connect_data=(sid=dev)))" -rootdir
"$XXSCM_TOP/install" \
Here one file named ReqLinesNotificationsRN.xml will be created in the below path:
XXSCM_TOP/install/oracle/apps/icx/por/wf/webui/customizations/site/0. Open the file and you
will able to view the personalizations that you have done.
Run the below command in the Instance where you want to import your personalization.
java oracle.jrad.tools.xml.importer.XMLImporter \
1<full path of the file you want to import> \
2-username "<username>" -password "<password>" \
3-dbconnection "(description=(address_list=(address=(protocol=tcp)
4(host=<host>)(port=<port>)))(connect_data=(sid=<sid>)))" -rootdir "<top level
directory>" \
5-rootPackage "/oracle/apps/<prod>"
Example:
java oracle.jrad.tools.xml.importer.XMLImporter \
1$XXSCM_TOP/install/ReqLinesNotificationsRN.xml \
2-username apps -password w3lcome123 \
3-dbconnection "(description=(address_list=(address=(protocol=tcp)(host=
4myhost)(port=12345)))(connect_data=(sid=dev)))" -rootdir "$XXSCM_TOP/install"
\
5-rootPackage "oracle/apps/icx/por/wf/server"
Advertisements
Deploy OAF page
Guest Author
2. Compile all java files (Controller Files) with command javac <file_name>.java
java oracle.jrad.tools.xml.importer.XMLImporter
$JAVA_TOP/prajkumar/oracle/apps/fnd/webui/HelloWorldPG.xml -username apps -
password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=
<name of HOST>)(PORT=<port_number>))(CONNECT_DATA=(SID=<SID_NAME>)))"
-rootdir $JAVA_TOP
jdr_utils.printDocument('/prajkumar/oracle/apps/fnd/webui/HelloWorldPG',1000)
Example –
DECLARE
BEGIN
jdr_utils.printDocument('/prajkumar/oracle/apps/fnd/webui/HelloWorldPG',1000);
EXCEPTION
DBMS_OUTPUT.PUT_LINE(SQLERRM);
END;
5. Create form function with property "SSWA jsp function" and webhtml
"OA.jsp?page=/prajkumar/oracle/apps/fnd/webui/HelloWorldPG"
6. Add function to menu
7. Add menu to responsibility
Partial Page Rendering (PPR) in OAF
PPR is a technology that lets you refresh a specific part of a page when you want to make a UI change
instead of having to refresh (redraw) the entire page.
For this first make the position code item as message choice.
position-->itemStyle-->messegeChoice
DATA-->
U will get the window for creating new attribute set the following properties.
Name:- ManagerIDRendered
Type:- BOOLEAN.
Select the positionCode item and in the property inspector set the following properties.
managerid-->visual
${oa.PartialVO1. ManagerIdRendered}
Create one method in AM java file
if(!vo.isPreparedForExecution())
vo.executeQuery();
}
OARow row=(OARow)vo.createRow();
vo.insertRow(row);
vo.first().setAttribute("ManagerIdRendered",Boolean.TRUE);
OAViewObject vo=getPartialVO1();
if(PositionCode.equalsIgnoreCase("DIRECTOR"))
vo.first().setAttribute("ManagerIdRendered",Boolean.FALSE);
else
vo.first().setAttribute("ManagerIdRendered",Boolean.TRUE);
}
Write the following code in processRequest of the controller.
OAApplicationModule am=(OAApplicationModule)pageContext.getRootApplicationModule();
am.invokeMethod("Partialvo");
position column
Serializable [] parm={position};
No Comments
Objective
Framework Page.
Process
o Identify the page where we wanted to controller extension
Navigation : Manager Self-Service -> Hire
Requirement : Say, we wanted to make Social Security as mandatory field using
controller extension.
Go to About this page and identity the controller associated with it:
oracle/apps/per/selfservice/newhire/webui/NewHireMainPageCO
Please connect using win scp or any other FTP tool and navigate to $JAVA_TOP and
download the class file
oracle/apps/per/selfservice/newhire/webui/NewHireMainPageCO.class
o Copy the file to your JDeveloper
Please copy that above class file to the appropriate directory structure present in
“My Classes” folder present in your JDeveloper
super.processRequest(pageContext, webBean);
OAMessageTextInputBean ssnBean =
((OAMessageTextInputBean)webBean.findChildRecursive(“HireNational
Identifier”));
ssnBean.setRequired(“yes”);
Please compile the Controller java file and copy the class file to the $JAVA_TOP
of the instance
o Bounce apache
a) cd $ADMIN_SCRIPTS_HOME
b) adoacorectl.sh stop ( for stopping oacore services)
Now we notice that the custom controller is taking effect and the “Social
Security” field has become mandatory.