View Full Version : How to specify jsonData parameters when calling store.load()?

2 Dec 2010, 10:28 AM
I have read the API on this, but I can't seem to get it to work with jsonData, instead of params. Here is the store definition:

store: new Ext.data.JsonStore({
autoLoad: false,
proxy: new Ext.data.HttpProxy({
jsonData: { facilityId: <needs dynamic value> },
method: 'POST',
url: 'ws/agency.asmx/getAgencyFacilityDocuments',
headers: { 'Content-Type': 'application/json;charset=utf-8' }
root: "d",
scope: this,
id: 'guid',
fields: ['guid', 'repositoryId', 'name', 'description']
}),I then call store.load(). But how do I pass in jsonData parameter for facilityId??

2 Dec 2010, 10:33 AM
Nevermind, again! It seems that AFTER making a post, the "Similar Threads" feature finds relevant threads, that the "Forum Search" does not seem to be able to find. Seems like the query logic in the "Similar Threads" is WAY better than the "Forum Search" query logic.

This has happen to me several times already.

So needless to say, this is already answered in another thread: http://www.sencha.com/forum/showthread.php?74688-How-to-specify-jsonData-as-option-in-store.load%28%29