Skip to Content
Jan 22, 2020 at 03:41 PM

SAPUI5: How to generate new Elements based on a ComboBox Option

912 Views Last edit Jan 22, 2020 at 03:47 PM 3 rev


I have the following ComboBox:

<ComboBox items="List with items" width="100%" visible="true" 
textAlign="Initial" textDirection="Inherit" maxWidth="100%">
    <core:Item text="Example 1">
      <Label text="Option 1"></Label>
      <Label text="Option 2"></Label>
   <core:Item text="Example 2">

I have a comboBox with two Possibilities Example 1, Example 2.

If the User chooses Example 1 -> the Label Text of Option 1 and 2 should drop.

I get the following Error:

What to do to make it function?


errr.png (3.7 kB)