<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAPUI5 SegmentedButton aggregations: items and buttons in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapui5-segmentedbutton-aggregations-items-and-buttons/m-p/318830#M4711</link>
    <description>&lt;P&gt;Why is it that this works:&lt;BR /&gt;&lt;BR /&gt;var seg = new sap.m.SegmentedButton();&lt;BR /&gt;panel.addContent(seg);&lt;BR /&gt;panel.onclick = function() { seg.addButton(new sap.m.Button({text: "text"})); };&lt;/P&gt;&lt;P&gt;But this doesn't:&lt;BR /&gt;&lt;BR /&gt;var seg = new sap.m.SegmentedButton();&lt;BR /&gt;panel.addContent(seg);&lt;BR /&gt;panel.onclick = function() { seg.addItem(new sap.m.SegmentedButtonItem({text: "item"})); };&lt;/P&gt;&lt;P&gt;In the second case only the first item shows up, while the first example works perfectly (I can add as many as I want).&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 15:01:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-11-17T15:01:50Z</dc:date>
    <item>
      <title>SAPUI5 SegmentedButton aggregations: items and buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapui5-segmentedbutton-aggregations-items-and-buttons/m-p/318830#M4711</link>
      <description>&lt;P&gt;Why is it that this works:&lt;BR /&gt;&lt;BR /&gt;var seg = new sap.m.SegmentedButton();&lt;BR /&gt;panel.addContent(seg);&lt;BR /&gt;panel.onclick = function() { seg.addButton(new sap.m.Button({text: "text"})); };&lt;/P&gt;&lt;P&gt;But this doesn't:&lt;BR /&gt;&lt;BR /&gt;var seg = new sap.m.SegmentedButton();&lt;BR /&gt;panel.addContent(seg);&lt;BR /&gt;panel.onclick = function() { seg.addItem(new sap.m.SegmentedButtonItem({text: "item"})); };&lt;/P&gt;&lt;P&gt;In the second case only the first item shows up, while the first example works perfectly (I can add as many as I want).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 15:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapui5-segmentedbutton-aggregations-items-and-buttons/m-p/318830#M4711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-17T15:01:50Z</dc:date>
    </item>
  </channel>
</rss>

