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!

VO Rowount returns 2, but while(vo.hasNext()) iterates only for 1 Row

Sameer.DarbhaMar 7 2011 — edited Mar 7 2011
Hi

I am facing a weird issue.
I have an EO based VO, with an expert mode query getting data from other tables as well.

After executing the query, I printed the row count and it gives 2 rows.
When I tried to iterate the vo rows, only one row is getting iterated. (while(vo.hasNext()).
I am doing all this in an AM method included in the client Interface.
I am calling this method binding from my ADF jspx page on a button click.

I found this issue in a couple of places in my application.
I might have missed something or done something wrong, but I am not able to figure it out.

Can you please tell me if there is a way I can know the reason why it is happening like that.

JDeveloper : 11g (11.1.1.3.0)
Model : BC4J
View : ADF

Thanks for any help.
Regards
Sameer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2011
Added on Mar 7 2011
3 comments
739 views