5 Replies Latest reply: Apr 8, 2013 6:47 PM by 975815 RSS

    selectManyChoice & dynamic list

    975815
      Hi,

      I'm trying to use the selectManyChoice component but it is not saving the selected values. When I drag & drop the attribute from the data control and choose 'multiple selection', it doesn't allow me to specify the LOV source (I can do it for single selection). That's why I have done it manually and this is what I have so far:

      Page:
      <af:selectManyChoice value="#{bindings.ServiceType.inputValue}"
                                               label="Service Type/s" id="smc1">
                            <f:selectItems value="#{bindings.serviceTypeList.items}"
                                           id="si55"/>
                          </af:selectManyChoice>
      Page def:
      <list IterBinding="ServiceTypeIterator" ListOperMode="multiSelect"
                ListIter="serviceTypeListIterator" id="ServiceType"
                DTSupportsMRU="true" StaticList="false">
            <AttrNames>
              <Item Value="Code"/>
              <Item Value="Description"/>
            </AttrNames>
            <ListAttrNames>
              <Item Value="key"/>
              <Item Value="value"/>
            </ListAttrNames>
            <ListDisplayAttrNames>
              <Item Value="key"/>
              <Item Value="value"/>
            </ListDisplayAttrNames>
          </list>
          <list IterBinding="serviceTypeListIterator" id="serviceTypeList"
                ListOperMode="multiSelect" ListIter="serviceTypeListIterator"
                DTSupportsMRU="true">
            <AttrNames>
              <Item Value="key"/>
              <Item Value="value"/>
            </AttrNames>
          </list>
      ServiceType is defined as a collection in the model.

      As you can see I have 2 different iterators (one for the values and one for LOV).
      Am I missing something?

      Thanks!

      JDev version: 11.1.1.6