Filter data from a dynamic URL

I’m trying to display an object that has a property which is a list of other objects

Ex. Trying to display a classroom which has a list of students

the data I get back from the API looks like

{
id: 1,
name: “Class A”
students: [
{id: 1, name: “First”},
{id: 1, name: “Second”},
]
}

So I have two datatables, One to display the information about the class and one to display the students.

I’m using Jet so the API URL depends on a URL parameter.

I previously asked about filtering data here http://forum.webix.com/discussion/comment/12333/#Comment_12333
The difference is that the url has to be set outside of the config.

Perhaps the easier way to do this is to bind one datatable to another. Here’s a quick sample:

http://webix.com/snippet/c73f4b37

And the docs