findViewObject in OAF
findViewObject is the method in the OA framework which helps
to find the View Object(VO) available in the Application module of the OAF
Page. We all know that , When we creates the View Object for OAF page , then we
much need to assign these View object to the application Module of the Page. In
the Same way when we need to find the view object in the OAF page during run
time using method findViewObject in OAF then we first need to take control of
the Application Module of the Page. We call the control of Application module
is handle of the view object. Once we got the handle of the Application module
then we try to find the View Object on the Application Module of the OAF Page.
Here below is the code helps to find the View Object.
OAApplicationModule appModule =
pageContext.getApplicationModule(webBean);
OAViewObject
vo1 = (OAViewObject)appModule.findViewObject("ExpenseReportHeadersVO");
0 comments:
Post a Comment