This discussion is archived
2 Replies Latest reply: May 9, 2012 6:56 AM by 599202 RSS

How to pass parameter throw PPR

NiladriSaha Newbie
Currently Being Moderated
Hi ,

I have set partial fire action to a table choice bean. Now i need to get the line number from which the event fired.
so, i need the pass the line number( VO attribute) as a parameter when i am setting the PPR programmatically.

currentlu my code is ::
FireAction firePartialAction = new FirePartialAction("RentalType");
rentalType.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);

Please tell me how to pass LineNumber VO attribute as parameter with this event.so, i can check from which line the event got fired.

Thanks,
Niladri Saha
  • 1. Re: How to pass parameter throw PPR
    MeherIrk Expert
    Currently Being Moderated
    Hi,

    Try below code for fire action and pass param to another page:

    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    {
    super.processRequest(pageContext, webBean);
    OAMessageStyledTextBean oamessagestyledtextbean1 =
    (OAMessageStyledTextBean)oapagecontext.getPageLayoutBean().findChildRecursive("NumberOfRoleLink2");
    oracle.cabo.ui.action.FireAction FireActionA = new oracle.cabo.ui.action.FireAction();
    FireActionA.setEvent("*Param*");
    FireActionA.setUnvalidated(true);
    oamessagestyledtextbean1.setPrimaryClientAction(FireActionA);
    ---------------------------------------
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    {
    super.processFormRequest(pageContext, webBean);
    if("*Param*".equals(pageContext.getParameter(EVENT_PARAM)))
    {
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/pa/msg/webui/SearchPG&var="+LineNum,
    "SEARCH",
    OAWebBeanConstants.GUESS_MENU_CONTEXT,
    null,
    null,
    false, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    }

    Regards
    Meher Irk
  • 2. Re: How to pass parameter throw PPR
    599202 Newbie
    Currently Being Moderated
    Hi

    I have a similar requirement can you share how it worked for you.

    Thanks,

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points