Basic scenario
Have a dropdown list
Is set up with a datasource as follows:
Works fine.
Later in the code, I assign a data object
(console.log confirms this is working and the value is being retained)
Then after I set this values, I do a sync on the dataSource
The request goes to the server, as expected, works fine
HOWEVER, it does not attempt to POST the data value that was set, which is meant to modify the query done by the server
Is this a bug or am I just missing some critical piece of information?
Have a dropdown list
Is set up with a datasource as follows:
dataSource: {
type:
"json"
,
transport: {
read:
'/Chargeability/SL_JSON'
}
},
Works fine.
Later in the code, I assign a data object
sl_dd_d.dataSource.transport.read.data = { bu: value };
(console.log confirms this is working and the value is being retained)
Then after I set this values, I do a sync on the dataSource
sl_dd_d.dataSource.sync();
The request goes to the server, as expected, works fine
HOWEVER, it does not attempt to POST the data value that was set, which is meant to modify the query done by the server
Is this a bug or am I just missing some critical piece of information?