Data parsing issue

I have the following issue ( Code Snippet ) where I’m trying to load into an active content dynamically in layers. It’s more of a hack and it’s a bad one, so I was hoping to figure out a better way to do this.

As you’ll see in the snippet, I have to parse the dummy data twice in order for the values to be set to the components. I also can’t use the property “data” for the active component list.

Any help would be appreciated.

I figured it out. I had attempted this before, but it did not work -but I had set it to the event on the wrong component. Here is the fix: https://webix.com/snippet/2341b18a

In fact, new data is parsed to the richselect, but it is not rendered, as rendering of activeContent depends on the master list. You need to call list.refresh() (parse triggers it automatically):

$$("seq").parse(dummy); //This is a bad hack
//$$("userList") is literally $$("select").getList()
$$("userList").parse(option_data);
$$("seq").refresh();

Am I correct assuming that you need to load different data depending on the row? In such case, solution may be slightly different, but still, initial values have to correspond to the data in the list.