Anil's Blog is Best Viewed on GOOGLE CHROME

Thursday, April 16, 2009

How to capute current row in Table Region

public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)


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

String event = pageContext.getParameter("event");
if ("").equals(event))
// Get the identifier of the PPR event source row
String rowReference =
Serializable[] parameters = { rowReference };
// Pass the rowReference to a "handler" method in the application module.

am.invokeMethod("", parameters);
In your application module's "handler" method, add the following code to access the source row:

OARow row = (OARow)findRowByRef(rowReference);

if (row != null)


1 comment:

  1. Anil,

    This is SAN, i tried your code as follows which throws null exception.


    rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    if(rowRef != null && !("".equalsIgnoreCase(rowRef ))){
    PerSuccPlanSearchVORowImpl row = (PerSuccPlanSearchVORowImpl)oaam.findRowByRef(rowRef);
    if(row != null)
    throw new OAException("row is null");
    throw new OAException(succId, OAException.INFORMATION);


    Using the above code, i got only row is null exception.

    Can you please tell me how to solve to get the current's row's value.

    Thanks in advance,


Note: Only a member of this blog may post a comment.