{
super.processFormRequest(pageContext, webBean); OAApplicationModule am =
(OAApplicationModule)pageContext.getApplicationModule(webBean);
String event = pageContext.getParameter("event");
if ("
{
// 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("
}
}
In your application module's "handler" method, add the following code to access the source row:
OARow row = (OARow)findRowByRef(rowReference);
if (row != null)
{
...
}
Anil,
ReplyDeleteThis is SAN, i tried your code as follows which throws null exception.
if("XXSubmit".equals(pageContext.getParameter("event"))){
rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
if(rowRef != null && !("".equalsIgnoreCase(rowRef ))){
PerSuccPlanSearchVORowImpl row = (PerSuccPlanSearchVORowImpl)oaam.findRowByRef(rowRef);
if(row != null)
{
succId=row.getAttribute("SuccessionPlanId").toString();
}else{
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,
SAN