View Full Version : JSON String formated but impossible to send to list

26 Oct 2011, 8:04 AM
Hey, i have a question about the list store.
I have in my store a function who get a correct formated JSON string, but i don't know how to send this on the list ....

The store: for the moment, i get the JSON String in setObj and if there is not null, send to a PHP file who get the request again .....
But the variable JsonObj contain the true JSON string already ...

WPApp.stores.ResultPanelListStore = new Ext.data.JsonStore({
model : 'WPApp.models.SearchDirectoryListPanelModel',
proxy: {
type: 'ajax',
url: WPApp.config.host + WPApp.config.PhpPath + 'searchModuleFormat.php',
reader: {
type: 'json'
setObj: function (JsonObj) {
this.JsonObj = JsonObj;
var pass = 0;
if (this.JsonObj != "")
var pass = 1;
autoLoad: true

How can i do for send this variable to my List Item Tap please ?
I get for the moment the JSON File like that:

listeners: {
itemtap: function(view, index) {
var record = WPApp.stores.ResultPanelListStore.getAt(index);

But that's terrible because i'm so close to get the direct variable ...
Is there a solution please?