Sometimes you want to get current row in table. To apply this you can use the following code in controller and write it inside processFormRequest method.
Thanks
public void processFormRequest(OAPageContext pageContext,
OAWebBean webBean) {
super.processFormRequest(pageContext, webBean);
//Get application Module
OAApplicationModule am = pageContext.getApplicationModule(webBean);
//Get Row Refrence
String rowReference =
pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
//Get current Row using Row Reference
OARow currRow = (OARow)am.findRowByRef(rowReference);
//Get attribute value from current row
String attrValue = (String)currRow.getAttribute("AttrName");
}
Thanks
String attrValue = (String)currRow.getAttribute("AttrName");
ReplyDeleteGetting nuln pointer exception while doing this.
Getting null pointer for me too.. any idea how to fix it?
ReplyDeleteGetting null pointer for me too.. any idea how to fix it?
ReplyDeleteif (null!=currRow){
DeleteString attrValue = String.ValueOf(currRow.getAttribute("AttrName")) ;
}