When we have a ViewObject data control instance inside the jspx page, we can use the Binding layer to get the current row, inside the corresponding backingBean class.
DCBindingContainer dc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iter = dc.findIteratorBinding("TestVO1Iterator");
ViewObject vo = iter.getViewObject();
Row r = vo.getCurrentRow();
In the meantime, we can use the AppModule instance to get the current row too.
ApplicationModule amTl = ADFUtils.getAppModule("TestAM");
TestAMImplservice = (TestAMImpl)amTl;
ViewObjectImpl vo = (ViewObjectImpl) amTl.findViewObject("TestVO1");
Row r = vo.getCurrentRow();
Is there any difference in these two ways. Is there any advantage accessing the current row using one of this way, over the other.
I tried to refer documentation and other materials, but couldn't find any useful one.