Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Try to fill xml combobox parameters with js controller

Hi,

I have a view in xml.

In my view, I insert 2 combobox :

<Combobox id="combo1"

selectionChange = "onComboSel"

items="{

  path: '/CountryF4Set',

  filters: [{ path: 'ZCOMBO', operator: 'EQ', value1: '1' }]

  }"

  <items>

     <core:ListItem text="{ZTEXT}" key="{ZKEY}"> </core:ListItem>

  </items>

</Combobox>

<Combobox id="combo2"

selectionChange = "onComboSel"

enable='false'>

  <items>

     <core:ListItem text="{ZTEXT}" key="{ZKEY}"> </core:ListItem>

  </items>

</Combobox>

I want to know how add add value (retrieve from backend with path and filter) in my combo2 in function onComboSet ?

=> I want to translate :

items="{

  path: '/CountryF4Set',

  filters: [{ path: 'ZCOMBO', operator: 'EQ', value1: '1' }]

  }"

in javascript !

Thanks for your help

Former Member
Not what you were looking for? View more on this topic or Ask a question