OAF VO Execute Rows

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

OAF vo.

executeQuery() giving 0 rows

I came across this Issue sometimes in 12.2.4 Instance the vo.executeQuery() gets queried but
returns 0 rows. When the same query is executed in DB it returns some rows. So to solve this one
line has been added and that is vo.setMaxFetchSize(-1);

OAViewObject attachVO= null;

attachVO=(OAViewObject)am.findViewObject("XXAttachVO1");

OAApplicationModule am=null;

am=(OAApplicationModule)pageContext.getApplicationModule(webBean);

pageContext.writeDiagnostics(this, "Inside XXAttachCO PR AuctionId: "+auctionHeaderId, 4);

attachVO.reset();

attachVO.clearCache();

attachVO.setMaxFetchSize(-1); //For Querying the Record


attachVO.setMaxFetchSize(0); //For Creating the Record

attachVO.setWhereClauseParams(null); // Always reset

attachVO.setWhereClause(" AUCTION_HEADER_ID = "+auctionHeaderId);

attachVO.executeQuery();

pageContext.writeDiagnostics(this, "Inside XXAttachCO PR AuctionId:


attachVO.getQuery() :"+attachVO.getQuery(), 4);

pageContext.writeDiagnostics(this, "Inside XXAttachCO PR AuctionId: attac

You might also like