Problem with refresh 'options' in the richselect component

Hello,

I load the richselect with a list of data in an array (var list = [various values]) and I have the data correct the first time:

view: “richselect”, id: “richselect1”, options: list

But when I reload the list with new values it doesn’t shows them.
I see the empty richselect, but the list array isn’t empty…

I have tried with this for refresh:

$$(‘richselect1’).setValues({ options: list});
$$(‘richselect1’).refresh();

Thanks,
Best

Try to replace

$$('richselect1').setValues({ options: list}); $$('richselect1').refresh();

with

$$('richselect1').getPopup().getList().parse(list);

Yes it works, thanks!

Have a nice day