Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Access VO from another VO using ViewAccessor and not ViewLink Accesor

LausNov 11 2015 — edited Nov 11 2015

Hi,

I am using JDeveloper 12.1.3.

And I have strange problem.

I have two View Objects that are linked together with ViewLink.

Inside my application module impl class I have written java code in which I access ViewSecond from ViewFirst using View Accessor ViewSecondAccessor that I created inside ViewFirst.

If I use this ViewSecondAccessor I am not getting any rows from ViewSecond? This is strange?

If I use View Link Accessor that is created automaticaly I get all rows I need.

The way I use view accessor and view link accessor is the same in my java code:

Row viewFirstRow = getViewFirst1().getCurrentRow();

RowSet viewSecondRowSet=(RowSet)viewFirstrRow.getAttribute("ViewSecondAccessor ");

Why my custom View Accessor ViewSecondAccessor  is not working but view link accessor works ok?

Until this moment I always used View Accessor from my EO Impl classess, and it always worked, but now when I am calling it from inside AplicationModuleImpl class through ViewFirst I don't get any row?

Any help please?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2015
Added on Nov 11 2015
8 comments
2,073 views