I need to customize Customer and supplier form, but I am fresh in OAF. I have created and developed/deployed brand new OAF forms,
but I do not know the steps of OAF extension. If anyone knows, kindly share. sample steps, how can i open oracle xlm forms in jdeve to extent, and deploy in oracle.
1) Get the controller class file from server and save it to your local machine under myclasses folder followed by the package name like oracle/apps/...webui..
2) From jDev, create a new java file extending from the class saved in step1. Create this file under xx/oracle/apps/..webui
3) Write your logic in the new extended controller and compile that on the server.
4) From front end, goto 'Personalize Page' and replace the standard controller name by your custom controller.
When user goes to create customer site, and site already exist/enter, then user can not able to press “create site button” or if user press “create site button” then popup a error message.” You cannot create New Customer Site Because Site already exist”.
Then extend your controller and write the logic in PFR method of custom CO:
Catch the 'create site button' and check if site is already there using a sql query or getting results from VO used.
If exists, then throw an OAException error message like 'Site already exists'.
Firstly get the handle to root AM or AM used by that VO using:
OAApplicationModule rootAm = pageContext.getRootApplicationModule();
OAApplicationModule am = (OAApplicationModule)rootAm.findApplicationModule("nameOfAM");
then get the VO:
OAViewObject vo = (OAViewObject)am.findViewObject("nameofVO");
You got the VO here, so now you can get rows and corresponding attributes that you want to use.