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!

Oracle ADF : Issue with displaying LOV values with selectManyChoice/CheckBox component

Praveen_N-OracleFeb 5 2015 — edited Feb 27 2015

Hi All,

I am using Oracle JDeveloper 11.1.1.7. I want to use selectManyChoice component in my requirement. While using same, I have observed that selectMany components like selectManyChoice/selectManyCheckBox component are not populating values from LOV VO in dropdown. Instead of that It is displaying value destination VO attribute values.

For example,

I have EmpVO and DeptVO. Now I want to attach LOV to 'DepartmentId' attribute of EmpVO by using DeptVO as sourceVO. After doing this if I drag and Drop EmpVO's DepartmentId attribute as selectOneChoice component, at runtime we will be able to see DepartmentName in dropdown as I have selected DepartmentName as display attribute and departmentId as ListAttribute in LOV.

To create SelectManyChoice binding, if I drag and drop EmpVO instance in to page, we can find SelectManyChoice option under "Multiple Selection" option. As soon as selecting SelectManyChoice option, we will be able to see EditListingBinding window as shown in below where in we are asked to map baseAttr and displayattribute for that component. This means that it has not considered LOV which we have attached. To display department Name in dropdown, we can select departmentVO instance "Base Data Source", so that in Base and display Attribute we can map DepartmentId and departmentName. By doing this we can achieve my schenario in displaying as dropdown. The problem with this is that, this will component will bind with DepartmentVOIterator and whatever value which I am selecting in selectMany component, I need to take and set on target attribute where ever I need to set programmatically.

ListBinding.png

Is there any Declarative way to display selectMany component which uses LOV as source in displaying value in dropDown? Please suggest.

Thanks in advance.

Praveen.

This post has been answered by Praveen_N-Oracle on Feb 27 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2015
Added on Feb 5 2015
2 comments
1,075 views