This is a migrated thread and some comments may be shown as answers.

Remote data via transport property doesn't accept parameters?

0 Answers 68 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 18 Apr 2012, 07:10 PM
Basic scenario

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?

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Michael
Top achievements
Rank 1
Share this question
or