Saturday, August 17, 2019

setForwardURL


Sets the JSP forward URL to point to the passed function's URL call. The framework will continue processing the request on the current page, but will forward to the URL before rendering this page and abort the rendering cycle.

Let us see the parameter list in “pageContext.setForwardURL”.

Example code is :
line1 :  pageContext.setForwardURL (DestinationPagePath,
line2 :                                                   null,
line3 :                                                   menu_context,
line4 :                                                   null,
line5 :                                                   params(null),
line6 :                                                   RetainAM(true),
line7 :                                                   ADD_Bread_Crumbs,
line8 :                                                   Ignore_Messages);

line1 : Destination Page Path : Complete path of the OAF page.
line2: null : If we want to call oracle apps form then then in first line Destination page path is null and here we will give the function name of the form. Line1 and Line2 are interlinked.
line3: menu_context: We can include any number of menus as we require. KEEP_MENU_CONTEXT :- Indicates that OA Framework should retain the existing menu context while forwarding from one page to another.
line4: null: if we want only one particular menu then here we will specify that menu name and in line3 we need to pass null, line3 and line4 are interlinked.
line5: params(null) : If we want to carry the values then we pass those values here.
line6: RetainAM(true): generally this will be set to true value. AM false means the
transactionn state will be lost and AM true means the transaction state will not be lost.E.g VO is ttached to AM, then the VO query records will not be lost whenever AM is true.
line7: -Add_Bread_Crumbs: If we want the link to carry to next page and store in the memory.
ADD_BREAD_CRUMB_YES :- Value of addBreadCrumb that indicates the breadcrumb must be added to the existing in memory breadcrumb list while forwarding from one page to another.
ADD_BREAD_CRUMB_NO :-Value of addBreadCrumb that indicates the in memory breadcrumb list should be cleared while forwarding from one page to another.
line8:-IgnoreMessages: It will restrict the messages to not to carry from one page to another.
IGNORE_MESSAGES:-Indicates that OA Framework should forward to the destination page, even if exceptions or messages exist.

No comments:

Post a Comment

AME (Approval Management Engine)

AME (Approval Management Engine) : AME Stands for Oracle Approval Management Engine. AME is a self service web application that enables...