Registration of OAF Page in Apps.
Now we are going to learn about how to register the
pages in apps.
First create the page in JDeveloper and compile the
page.
After compiling the page now we have to move the
class files to Java top in server.
Step1:-Move
the class file from local machine to
$java top
local machine
path:- <JDeveloper patch
directory>/jdevhome/jdev/myclasses
the class file is
located in this folder move that to
Server path:- /oracle/apps/r12/visr12/apps/apps_st/comn/java/classes
Move the whole folder
where your project located.
Here I am using WinSCP
tool to move the files.
Step2:-
XML import utility
After moving the files to
the server we to import the xml files.
Open the command prompt.
change the directory to:- C:\dev\oaf\jdevbin\oaext\bin
after that import the following:-
make the fallowing path in a single
line for that in notepad go format uncheck word wrap:-
import
C:\dev\oaf\jdevhome\jdev\myprojects\sangu\oracle\apps\po\searchPRJ\webui\SearchPG.xml
-rootdir C:\dev\oaf\jdevhome\jdev\myprojects -username apps -password apps
-dbconnection
"(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebsr12.com)(PORT=1521))(CONNECT_DATA=(SID=visr12)))"
NOTE
C:\dev\oaf\jdevhome\jdev\myprojects\sangu\oracle\apps\po\searchPRJ\webui\SearchPG.xml
(This is the path where the oaf
pages stores in our local machine)
Give the proper username, password,
host name, port name, db name)
From unix server:
Run the
below command from the path.
$JAVA_TOP/sangu/oracle/apps/po/searchPRJ/webui
Step3:- Login to
Oracle Apps
Switch to Application Developer Responsibility
Select Function.
Application Developer--- > Function
Create a function
Name:- (EMP_SEARCH)
User
Function Name:- (EMP_SEARCH)
After that go to Properties tab and select as
Type:-
SSWA jsp function
Next Go to Web HTML tab and give the path of your
page
HTML Call:-
OA.jsp?page=/sangu/oracle/apps/po/searchPRJ/webui/SearchPG
Save and exit.
Step4:- Create a
menu-attach the function
Application Developer--- > Menu
Provide the following details.
Menu:- (SANGU_EMP)
User
Menu Name:- (SANGU_EMP)
Menu
Type:- Standard.
Next give :-
Seq:-
Prompt:- (Emp Search)
Function:-
EMP_SEARCH (Give the function Name u have created).
Step5:-Crete the
Responsibility and attach the menu.
System Administrater--
>Security-- >ResponsibilityàDefine.
Provide the following
Responsibility
Name:- (Sangu_OAF)
Application:-Purchasing.
Rsponsibility
Key :- (SANGU_OAF)
MENU :-
SANGU_EMP (Select the menu that u have created)
DataGrup
Name:-Standered
Application:-
Purchasing.
Step6:-Attach
the responsibility to user.
System Administrater--
>Security-- >User -- >Define.
This finishes the registration Switch to the
responsibility u created .
U will see the page.
Hi Sangu,
ReplyDeleteCan we use same for 12.2.4..
Thanks,
Vamshi
Hi Vamshi,
DeleteAdditionally we need to follow bellow steps.
Go to the custom path where class file is present
run adcgnjar
Bounce the oacore
cd $ADMIN_SCRIPTS_HOME
./admanagedsrvctl.sh stop oacore_server1
./admanagedsrvctl.sh start oacore_server1
Bounce the apache
./adapcctl.sh stop
./adapcctl.sh start
Regards,
Sangu
I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Oracle OAF, kindly contact us http://www.maxmunus.com/contact
ReplyDeleteMaxMunus Offer World Class Virtual Instructor led training on Oracle OAF. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Free Demo Contact us:
Name : Arunkumar U
Email : arun@maxmunus.com
Skype id: training_maxmunus
Contact No.-+91-9738507310
Company Website –http://www.maxmunus.com
while running adcgnjar it will show command not found can you gave me another solution....please
ReplyDeleteyou just need to type adcgnjar and press enter.
DeleteOnce check is the environment set.
Thanks a lot for sharing a valuable blog on OA Framework. I was browsing through the internet looking for OAF and Oracle ADF and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information about OAF by attending OA Framework Online Training. You can learn about interview questions by visiting OAF Interview Questions
ReplyDeleteMy spouse and I love your blog and find almost all of your posts to be just what I’m looking for. Appreciating the persistence you put into your blog and the detailed information you provide. I found another one blog like you OA Framework.Actually I was looking for the same information on internet for Oracle OAF and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.
ReplyDelete