cols.forEach(function(n,i) {
var val = _this.get_value_at(i,r);
var type = GObject.type_name(val.g_type) ;
- var vs = type == 'GdaBinary' ? val.value.to_string(1024) : val.value;
+ var vs = ['GdaBinary', 'GdaBlob' ].indexOf(type) > -1 ? val.value.to_string(1024) : val.value;
//print(n + " : TYPE: " + GObject.type_name(val.g_type) + " : " + vs);
//print (n + '=' + iter.get_value_at(i).value);
add[n] = vs;
'varchar' : 'string',
'text' : 'string',
'longtext' : 'string',
+ 'tinytext' : 'string',
'mediumtext' : 'string',
'enum' : 'string',
-
+ 'timestamp' : 'number',
+ 'blob' : 'text'
}
'*prop' : 'store',
'xtype' : 'Store',
'|xns' : 'Roo.data',
+ 'remoteSort' : true,
+ '|sortInfo' : '{ direction : \'ASC\', field: \'id\' }',
listeners : {
'|beforeload' : 'function (_self, o)' +
"{\n" +
// we have a map..
for (var col in ini[reader.table]) {
var kv = ini[reader.table][col].split(':');
- var add = readers.filter(function(r) { return r.table == kv[0] })[0];
+
+ var add = readers.filter(function(r) { return r.table == kv[0] })[0];
+ if (!add) {
+ continue;
+ }
// merge in data (eg. project_id => project_id_*****
add.oreader.forEach(function(or) {
" //}); \n"+
"}\n"
},
- "|xns": "Roo"
+ "|xns": "Roo.Toolbar"
},
{
"text": "Edit",
"}\n"
},
- "|xns": "Roo"
+ "|xns": "Roo.Toolbar"
},
{
"text": "Delete",
"}\n"+
" "
},
- "|xns": "Roo"
+ "|xns": "Roo.Toolbar"
}
]
}, // end toolbar