Friday, January 24, 2014

Call OAF Page from OAF Page




Step 1:- Create a workspace and Project.
                Workspace
                                Name:- Call_OAF_PageWorkspace.jws
                Project
                                Name:- Call_OAF_PageProject
                                Package:- XXC05.oracle.apps.wip. Call_OAF_Page

Step 2:- Create a Application Module (AM)
                Name:- Call_OAF_PageAM
                Package:- XXC05.oracle.apps.wip. Call_OAF_Page.server

Step 3:- Create a New Page
                Name:- Call_OAF_PagePG
                Package:- XXC05.oracle.apps.wip. Call_OAF_Page.webui

Step 4:- Select region1 and set the following properties:
                ID:-  PageLayoutRN
                Region Style:- pageLayout
                Window Title:- Call OAF Page Window
                Title:- Call OAF Page Title
                AM Defination:- XXC05.oracle.apps.wip.Call_OAF_Page.server. Call_OAF_PageAM


Step 5:- Add new Region in PageLayoutRN
                ID:- MainRN
                Region Style:- messageComponentLayout

Step 6:- Add ButtonLayoutRN into MainRN
                ID:- ButtonLayoutRN

Step 7:- Add  Button into ButtonLayoutRN
                ID:- CALL_PAGE
                Attribute Set:- /oracle/apps/fnd/attributesets/Buttons/Go
                Prompt:- Call OAF Page

Step 8:- Create a Controller
                Name:- Call_OAF_PageCO
                Package:- XXC05.oracle.apps.wip.Call_OAF_Page.webui

I have Already create a another page
                Name:- Hello_PagePG
                Path:- XXC05.oracle.apps.fnd.Hello_Page.webui

Step 9:-
Write That Code in Call_OAF_PageCO(ProcessFormRequest)


if(pageContext.getParameter("CALL_PAGE") != null)
    {
        pageContext.setForwardURL("OA.jsp?page=/XXC05/oracle/apps/wip/Hello/webui/HelloPG",
        null,
        OAWebBeanConstants.KEEP_MENU_CONTEXT,
        null,
        null,
        true,
        OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
        OAWebBeanConstants.IGNORE_MESSAGES
        );



Now Page is Successful Created , You run Page.

No comments:

Post a Comment