Loading data dynamically into active content (list)

Hello,

I'm having issues with loading data dynamically into an active list. I am able to do it with the data editor, but it's messy and I was hoping to figure out a way to do it this way.

Here is the code: https://webix.com/snippet/a957669b

I'm attempting to load the richselect with the user templates (stored on the server) and then load the users sequence settings for each row. I can't figure out how to set the richselect value dynamically.

Any help would be appreciated!

Comments

  • Hello,

    The activeContent element should be named according to the data property it vizualizes. In your case, it is value:

    //data
    { id:2, "val": "Sequence 2", "value": 2}
    ...
    { view:"list", activeContent:{
          value:{ view:"richselect", ...}
    }, template:"{common.value()}"} 
    

    Please, check: https://webix.com/snippet/37d18afb

  • I feel silly. Thank you for pointing this out, Helga!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion