title: SAPUI5 IconTabBar/IconTabFilter dynamically building
body: <p>I am very new to SAPUI5 and think the IconTabBar/IconTabFilter could help me with a page I am creating. I am not sure I can do what I want to do but hope so....</p>
  
  <p>I have a page with a table of users that are grouped by product. </p>
  
  <p>So:
      Customer XYZ</p>
  
  <pre><code>Product A
  User 1
  User 2
  
  Product B
  User 1
  </code></pre>
  
  <p>I would like to use the IconTabBar to allow users to see everything or to see only a particular product (A or B). My question is, can the IconBar and filtering be created dynamically? For instance, every customer does not necessarily have more than one product. So I want to be able to receive the possible products from a json call and then only show icons for the returned products. </p>
  
  <p>My XML file is currently laid out like the following (leaving out some of the code to make it easier to see):</p>
  
  <pre><code>&lt;Shell&gt;
     &lt;Page title="{/columnValue} Details" showNavButton="true" navButtonPress="goBack"&gt;
      &lt;ObjectHeader&gt;
      &lt;/ObjectHeader&gt;
          &lt;IconTabBar&gt;
               &lt;items&gt;
                    &lt;IconTabFilter showAll="true" count="{/custData/cust/prodcnt}" text="Products" keys="All"&gt;
                           &lt;Table inset="false" items="{ path:'/columnData', sorter: {        path: 'productName', descending: false, group: true } }"&gt;
                              &lt;columns&gt; 
                                        //column headings definition is here             
                              &lt;/columns&gt;
                              &lt;items&gt;
                                    /// column values defined
                              &lt;/items&gt;
                           &lt;/Table&gt;
                   &lt;/IconTabFilter&gt;
               &lt;/items&gt;
        &lt;/IconTabBar&gt;
    &lt;/Page&gt;
  &lt;/Shell&gt;
  </code></pre>
  
  <p>In 'custdata' I have (as shown) product counts (how many the customer has) and the products are stored in custdata/prod (an array). So I would like to create separate icons for tabs/filters for the products. Can I add them so they are created dynamically as the page is displayed (since each customer may have more or less than another customer)? The examples I have seen seem to be hard coding possible tabs/filters so I don't know if it is possible to do what I would like to do. I hope so because it would really help me. </p>