pagecontext.setforwardurl in oaf
If we want to move from One OAF Page to Another Page the we
can use this setforwardurl method to move from current page to another. In the
Setforwardurl servlet container forwards all request to the target page. In the
setforwardurl method our Current url does not change. This method accepts many
parameters to call another oaf page. The good part of this method is this just
passes the request from one to another so it means this does not immediately
move the control from current page to another page. Using this Method our rest
of the code still executes in the controller. After executing all the code in
the controller then it passes the request to move to another page.
String functionName,
byte menuContextAction,
String menuName,
com.sun.java.util.collections.HashMap
parameters,
boolean retainAM,
String addBreadCrumb,
byte messagingLevel)
Parameters:
url – This is the URL of the page to which we want to call
OA.jsp?page=/oracle/apps/xxap/testpage/webui/TestPage
functionName – The function to select
with the current menu context
menuContextAction –OAWebBeanConstants.KEEP_MENU_CONTEXT(keeps
the menu context as is), OAWebBeanConstants.KEEP_NO_DISPLAY_MENU_CONTEXT
(keeps the menu context as is, but will not display all menus including global
buttons) etc
menuName – The name of the HOMEPAGE
menu to reset the Menu context. If the menuName is not of type HOMEPAGE a
OAException will be thrown. You can pass null otherwise
parameters – HashMap of parameter
name/value pairs to append to the forward url
retainAM – If true, all the cached
application modules will be retained. If false, all the cached application
modules will be released
addBreadCrumb –Some of the values are
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, OAWebBeanConstants.ADD_BREAD_CRUMB_NO
etc.
messagingLevel -Possible values are
OAWebBeanConstants.IGNORE_MESSAGES, OAException.ERROR etc
0 comments:
Post a Comment