Monday, 27 July 2020

how to pass parameter in destination url in oaf

How to pass parameter in destination url in oaf

Hi Friends, We are going to discuss about the how to pass parameter in destination url in oaf. We will share the steps to pass parameters in destination url to call oaf page from one page to another page. In OAF page , We do navigate from one oaf page to another page. In these navigation , we do call the other oaf page using the destination url of the destination page. IF we have an requirement to drive the values from one oaf page to another page , then we do pass parameters in destination url to call the oaf page. Parameters also helps to execute some functions in the destination oaf page while calling or opening the destination oaf page. To Pass parameters in destination url oracle oaf has provided us the 'HashMap' feature. Using 'HashMap' we can pass multiple parameters values in destination url in oaf page.

Step by Step to pass parameter in destination url in oaf

Step1:- Here below , we are sharing the steps for pass parameter in destination url in oaf.  I assume , we all are familiar with OAF initial steps for any set of oaf development. If you need more help , can refer my old blog posts.


Step 2:-

For Example, Here below is the OAF page form which we will be navigate to another Oracle Forms Page. We want to pass values from this page to our destination Oracle Forms page.
how to pass parameter in destination url in oaf
How to pass parameter from one page to another in oaf
Step 3:-
Here below is the page , which will be open while we will click on the above OAF page 'Responsibility Form'  Page.

/xxelng/oracle/apps/per/hiring/webui/XXConfermationPG
how to pass parameter in destination url in oaf
how to pass parameter in destination url in oaf

Step 4:- Now , We need to know the path of this above page.To know the path , Please follow these below steps.

For this we need to go to 'About this Page' in the Bottom of the Page.
how to pass parameter in destination url in oaf
how to pass parameter in destination url in oaf


Step 5:- Here below is the Highlighted Page url as below.
/oracle/apps/ap/oie/webui/HomePG

how to pass parameter in destination url in oaf
how to pass parameter in destination url in oaf


Now We need to goto our OAF Page Controller. 

Under OAF Controller , We need to write this below code under the Process From Request Method.

super.processFormRequest(pageContext, webBean);
   
    OAApplicationModule am = pageContext.getApplicationModule(webBean);

HashMap vhashMap = new HashMap(1);
vhashMap .put("ParamName1", "Test Value");

oapagecontext.setForwardURL("OA.jsp?page=/oracle/apps/ap/oie/webui/HomePG",
                                      null,
                                      OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                      null, vhashMap , true,
                                      OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                                      OAWebBeanConstants.IGNORE_MESSAGES);



In the Destination OAF Page , If we want to retrieve this parameter in processRequest() via:

super.processRequest(pageContext, webBean);
   
  OAApplicationModule am = pageContext.getApplicationModule(webBean);


oapagecontext.getParameter("ParamName1");



how to pass parameter in destination url in oaf



0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *