Dynamically change selectOptions

Hello!

I have entryFactory.selectBox. How can I dynamically change selectOptions depending on the data received from the server?

Thank!

Store your server data in global storage with the help of “window”.
example window[“serverData”] = result;

then use the same storage where ever you want
example
entryFactory.selectBox({
id : ‘myEntity’,
label : ‘myEntity’,
selectOptions : window[“serverData”],
modelProperty : ‘myEntity’
})

Its working for me. Thanks