Suppose you want to access an VO in Your Page which is attached to a particular Region of the page and not to the Main AM, you can get the VO using the following Code :
OAApplicationModule am1;
OAWebBean oawebbean1 =
webBean.findIndexedChildRecursive("mysampleRN");//Identify the Region to which your AM is attached. In this case mysampleRN is the Region.
am1 = pageContext.getApplicationModule(oawebbean1);
OAViewObject mysampleVO;
mysampleVO =
(OAViewObject)am1.findViewObject(" mysampleVO");
Thanks Pradeep. This logic saved my day and I could successfully complete a customization. Great work. Thanks again
ReplyDelete