title: SAPUI5 multiple Aggregation Binding
body: <p>As an initial data set, I have an XML list that can have multiple sublists. This list should be set up dynamically using SAPUI5.
  1. The first list should be a SAPUI5 list which should display the names.
  2. Then the Selection Values should be displayed as SAPUI5 SegmentedButtons.
  3. When the user presses the last button of the SegmentedButton, a drop-down list should show the matching subvalues.</p>
  
  <p>I did the first two points in XML.view. And that works fine.
  But I do not get the dropdown lists filled. How do I get the dropdown list filled?</p>
  
  <p>In addition, there are two different types. If the type is "qualitative", the user gets the SegmentedButtons displayed.
  If it is of the "quantitative" type, the user only gets an empty input field.</p>
  
  <p><a href="https://i.stack.imgur.com/EjfOm.png" rel="nofollow noreferrer">See here for Sample Image</a></p>
  
  <p>Dataset</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Rowsets&gt;
       &lt;Rowset&gt;
           &lt;Row&gt;
               &lt;Name&gt;Taste&lt;/Name&gt;
               &lt;Type&gt;qualitative&lt;/Type&gt;
               &lt;ID&gt;1&lt;/ID&gt;
               &lt;Selection&gt;
                  &lt;Row&gt;&lt;Value&gt;good&lt;/Value&gt;&lt;/Row&gt;
                  &lt;Row&gt;&lt;Value&gt;acceptable&lt;/Value&gt;&lt;/Row&gt;
                  &lt;Row&gt;&lt;Value&gt;unacceptable&lt;/Value&gt;&lt;/Row&gt;
              &lt;/Selection&gt;
           &lt;/Row&gt;
           &lt;Row&gt;
               &lt;Name&gt;Smell&lt;/Name&gt;
               &lt;Type&gt;qualitative&lt;/Type&gt;
               &lt;ID&gt;2&lt;/ID&gt;
               &lt;Selection&gt;
                  &lt;Row&gt;&lt;Value&gt;good&lt;/Value&gt;&lt;/Row&gt;
                  &lt;Row&gt;&lt;Value&gt;unacceptable&lt;/Value&gt;
                      &lt;Selection&gt;
                          &lt;Row&gt;&lt;Subvalue&gt;like fish&lt;/Subvalue&gt;&lt;/Row&gt;
                          &lt;Row&gt;&lt;Subvalue&gt;like socks&lt;/Subvalue&gt;&lt;/Row&gt;
                      &lt;/Selection&gt;
                  &lt;/Row&gt;
              &lt;/Selection&gt;
           &lt;/Row&gt;
           &lt;Row&gt;
               &lt;Name&gt;Weight&lt;/Name&gt;
               &lt;Type&gt;quantitative&lt;/Type&gt;
               &lt;ID&gt;3&lt;/ID&gt;
           &lt;/Row&gt;
           &lt;Row&gt;
               &lt;Name&gt;Appearance&lt;/Name&gt;
               &lt;Type&gt;qualitative&lt;/Type&gt;
               &lt;ID&gt;4&lt;/ID&gt;
               &lt;Selection&gt;
                  &lt;Row&gt;&lt;Value&gt;good&lt;/Value&gt;&lt;/Row&gt;
                  &lt;Row&gt;&lt;Value&gt;acceptable&lt;/Value&gt;&lt;/Row&gt;
              &lt;/Selection&gt;
           &lt;/Row&gt;
       &lt;/Rowset&gt;
  &lt;/Rowsets&gt;
  </code></pre>
  
  <p>main.view.xml</p>
  
  <pre><code>&lt;List 
  id="List"
  headerText="List" 
  items="{Result&gt;/Rowset/Row/}" &gt;
  &lt;InputListItem label="{Result&gt;Name}"&gt;
  
      &lt;SegmentedButton selectedButton="none" items="{Result&gt;Selection/Row/}" visible="{= ${Result&gt;Type} === 'qualitative' }"&gt;
          &lt;items&gt;
              &lt;SegmentedButtonItem key="{Result&gt;Value}" text="{Result&gt;Value}" /&gt;
          &lt;/items&gt;
      &lt;/SegmentedButton&gt;
  
      &lt;Select
          visible="{= ${Result&gt;Type} === 'qualitative' }" 
          items="{Result&gt;Selection/Row/Selection/Row/}"&gt;
          &lt;core:Item key="{Result&gt;Subvalue}" text="{Result&gt;Subvalue}" /&gt;
      &lt;/Select&gt;
  
      &lt;Input value="" visible="{= ${Result&gt;Type} === 'quantitative' }" /&gt;
  &lt;/InputListItem&gt;
  </code></pre>
  
  <p> </p>