The best way to do this is to create a list createList method ‒ Qlik Sense Developers for the field you want selections for. In the callback you can then do whatever you want.
Hope this helps you
Thank you very much Erik! Now i have created a list in my mashup. (i use this guide: https://help.qlik.com/en-US/sense-developer/September2017/Subsystems/Dev-Hub/Content/Howtos/dev-hub-create-field-list.ht… ) and in my *.js file there is the code like you have suggest. In my mashup I can't visualize anything...it's possible that my callback function should be instantiate in HTML file?
In the guide above I don't understand what I do in the 7. step: how i create my callback code?