cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to bind selected values from a multi combo box to a variable in SAP Build Apps?

Toney
Newcomer
0 Likes
1,637

I am trying to create a dynamic list of options using a multi-combo box for a user to select from and store the selected values in a variable, however, I am unable to find anything that can allow me access to the selected values. I have tried searching for documents that elaborated on Output Components/tokens and they did not provide sufficient information.

Accepted Solutions (0)

Answers (1)

Answers (1)

merituulimelkko75
Product and Topic Expert
Product and Topic Expert

Hi! The multi combo box outputs the selected value, so I would do this by creating a page variable with a matching schema – in the case of Multi Combo Box a list of Objects with text type `token` property – and adding an event where I monitor when the selected values change and set that to the page variable. If the schema matches, you can set the variable straight from the property of this component, otherwise you would have to use a formula.

Aqarius25
Discoverer
0 Likes
Hi, we are using multi combo box quite similarly. But we use appVars due to the fact that the result is needed on a second page. This works of course fine. But when navigating back the selection is gone. Do you have any advice how to show again the selected tokens?