vo ispreparedforexecution () in oaf
In this post, we will discuss about vo
ispreparedforexecution () in oaf. This is something which we normally use in
our View Object before executing finally in the OAF page. ispreparedforexecution
function will check whether all parameters are assigned properly and query is
ready for execution. On multiple navigations to the page this query will not be
executed multiple times. This is the final confirmation before executing the
final vo. This helps to minimizes the VO execution errors during run time and
help to execute the VO without any runtime issues.
Sample code for vo ispreparedforexecution () in oaf
OAViewObject vo =
(OAViewObject)getInsertVO1();
if (!vo.isPreparedForExecution())
{
vo.executeQuery(); if (!vo.isPreparedForExecution())
{
}
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
}
0 comments:
Post a Comment