Hi,
Can any one please explain about datastore’s dataFeed working mechanism?
How can i achieve dynamic url in datastore?
(I.e, my url is not just like url:“…/data/data1.json” , it can be dynamic like when i select an option in combo the option should be send to server, it should be a parameter in datastore’s url)
How can i accomplish this?
Thanks,
Naresh
dataFeed can be used when you are binding components
If you want to link component to some non dhtmlx control you can use simple approach
some.onchange = function(){
store.clearAll();
store.load("some/data/"+ this.value + "/data.json");
}
The above url is just a sample, you can use any necessary logic to build url based on other controls values.
So when to use dataFeed and url?
Hi,
So when to use dataFeed and url?
As Stanislav already wrote, dataFeed is used in case of binding. In detail - when you are going to use binding with server-side. Here are related articles:
docs.dhtmlx.com/doku.php?id=binding
docs.dhtmlx.com/doku.php?id=dhtm … xdatastore