dbl list reload data

Hi team,
I am using the double List (https://docs.webix.com/desktop__double_list.html) in the project that I am working on.

I am stuck at a particular scenario.
The following link is the layout of the scenario.
https://snippet.webix.com/qxbg65f0

the team dropdown gives dynamic JSON data which needs to be populated into the dblist.
the second drop down is the flag related dropdown which gives selections as per the corresponding flag value.

You can assume that the 2nd Dropdown corresponding to flags is disabled before selection of the first drop down.

Is there a way to achieve this?

here is the new link : https://snippet.webix.com/q1bsz1qh

Hello @yourDumbBro ,

To catch changed values which are selected in richselect you need to use onChange event

To add data to the dbllist it needs to use clearAll + parse . There doesn’t exist clearAll method for dbllist, we set this method to the lists of the dbllist as

 $$('id_dbllist').$$("left").clearAll();
 $$('id_dbllist').$$("right").clearAll();
 $$('id_dbllist').parse();

Please check the sample: https://snippet.webix.com/xoo8xfhu

Hey @Nastja,
Can we do it if there is string instead of a flag as the id of the dropdown?

Hello @yourDumbBro ,

Could you please clarify the use-case?

if there is string instead of a flag as the id
Do you want to remove the flag and use the id instead of it?