OAF Different Ways of calling invoketMethod()

1.      Basic InvokeMethod without params

                         OAApplicationModule am = pageContext.getApplicationModule(webBean);

    am.invokeMethod(“initEmployeeDetailsVO”);

2.      Calling Invoke Method with String Param

    Serializable params[]={strUserID};

    am.invokeMethod(“initFormMasterVO”, params);

3.      Calling Invoke Method with different data types

    if(pageContext.getParameter(“go”)!=null)

      {

        String fromDateStr = pageContext.getParameter(“fromDate”) ;

        Date fromDate = stringToDate(fromDateStr);

        String toDateStr  = pageContext.getParameter(“toDate”) ;

        Date toDate = stringToDate(toDateStr);

        OAMessageChoiceBean    expenseTypeBean = (OAMessageChoiceBean)webBean.findIndexedChildRecursive(“expenseType”);

        String expenseTypeStr = (String)expenseTypeBean.getSelectionValue(pageContext);

        OAMessageTextInputBean expenseClaimIDBean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive(“expenseClaimID”);

        String expenseClaimIDStr = (String)expenseClaimIDBean.getValue(pageContext);

        Class paramTypes[]={Date.class, Date.class, String.class, String.class}  ;

        Serializable params[]= {fromDate,toDate, expenseTypeStr,expenseClaimIDStr } ;

       am.invokeMethod(“initExpenseDetailsVO”,params, paramTypes);

      }

PageContext Methods

Parameters passing from one page to another

Invoking PLSQL Procedure/Function/DML Statement

Invoking Concurrent Program

Invoking Workflow

PPR/SPEL Syntax

Leave a Reply

Your email address will not be published.