Remote data via transport property doesn't accept parameters?

1 posts, 0 answers
  1. Michael
    Michael avatar
    7 posts
    Member since:
    Mar 2012

    Posted 18 Apr 2012 Link to this post

    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?
Back to Top