Hi Folks,
I need a dropdown list to be populated with some kind of filter based on another field.
What I am doing is
var source =
{
datatype: “json”,
datafields: [
{ name: ‘GroupPath’, type: ‘string’},
{ name: ‘NROMovil’, type: ‘string’ },
{ name: ‘PromedioVelocidadMaxExcesiva’, type: ‘string’ }
],
url: ‘services/Consolidado.php?NROMovil=340′, //URL THAT NEEDS LATTER CHANGE
async: false
};
var dataAdapter = new $.jqx.dataAdapter(source);
dataAdapter.dataBind();
Now I need to change the parameter in the URL to services/Consolidado.php?NROMovil=967.
My approach is to change dataAdapter._source.url and do Bind again. Is that the right way to do it?
dataAdapter._source.url=’services/Consolidado.php?NROMovil=967’;
dataAdapter.dataBind();
If not, please let me know what is the sound practice to do it.
Thanks in advance.
Hector.