1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    206
    Vote Rating
    1
    randomuser01 is on a distinguished road

      0  

    Default JSonStore: dynamic query not working

    JSonStore: dynamic query not working


    I have a combo which is bound via XTemplate to xml data. The combo works fine, dynamically sending a new querystring to teh server as the user types in, and displays the filtered results. (commented out code).

    I'm trying to convert this combo's store to a JSonStore but am finding that the "query" querystring is not sent to the server, only the url is sent back.

    With the HttpProxy, _dc and query are additional parts of the querystring. Any ideas what I'm missing?

    Code:
        /*
        var contractSearchDS = new Ext.data.Store( {
            proxy: new Ext.data.HttpProxy({
                url: '/CommandHandler.aspx?MessageType=GetReferenceData&type=FindContract',method: 'GET'
            }),
            reader: new Ext.data.XmlReader ({
                record: 'Contracts',
                id: 'Contract'
            }, [
                {name:'Contract'}
            ])
        });
        */
        
        var contractSearchDS = new Ext.data.JsonStore({
            url: '/CommandHandler.aspx?MessageType=GetReferenceData&type=FindContract',
            root: 'rows',
            method: 'get',
            fields: [
                'Contract'
        ]
         });

  2. #2

Thread Participants: 1