Sunday 7 July 2013

How to capute current row in Table Region

public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)

{

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

String event = pageContext.getParameter("event");
if ("").equals(event))
{
// Get the identifier of the PPR event source row
String rowReference =
pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
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)

{
...
}

No comments:

Post a Comment