View Full Version : sencha touch list store problem

27 Jun 2010, 7:41 AM

i used this new sintax for list store

var groupingBase = {
tpl: '<tpl for="."><div class="groups"><strong>{group_name}</strong></div></tpl>',
itemSelector: 'div.groups',
singleSelect: true,
id: "vehicle_group_list",
grouped: false,
indexBar: false,
store: new Ext.data.Store({
autoLoad: true,
url: 'get_groups.php',
storeId: 'store_get_groups',
id: 'threadid',
model: 'group_list',
proxy: {
type: 'ajax',
reader: {
type: 'json',
root: 'itms',
totalProperty: 'totalCount'

i use it on opera mobile emulator and the dragonfly debugger give me this error:

name: TypeError
message: Statement on line 6: Type mismatch (usually non-object value supplied where object required)
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

any help or suggestion on how to solve this is appreciated.
thanx in advance...

27 Jun 2010, 11:33 AM
solved in another way with this workaround while the next release comes out...

function jsonStoreRequest(url, fn) {
url: url,
success: function(response, opts) {
where u define the function to construct the data.Store object for the simple list population....

thx anyway...regards