Wednesday, December 26, 2018

Oracle OAF : Get Current Row in Table (Oracle Application Framework or OA Framework)


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");
        
//Setting The attribute value from current row
row.setAttribute("transfielddisable", Boolean.TRUE);
}
// Issue Faced ---- 
//Number WfQty = (Number)currRow.getAttribute("WriteoffQuanity");
// if ( WfQty.intValue() <= AvailQty.intValue())

1 comment:

  1. Getting null pointer for me too.. any idea how to fix it?

    ReplyDelete