I created a store and it's making each value 1 character and dropping the rest or the values.
I see the value was pass in via an array, but in the store each item is only one character.
function createWindowPublish(passArray, type) {
var ClassRecord = Ext.data.Record.create([{
name : 'class',
type : 'string'
}]);
var classStore = new Ext.data.SimpleStore({
fields : ['class'],
reader : new Ext.data.ArrayReader({}, ClassRecord)
});
var deviceComboStore = new Ext.data.SimpleStore({
fields : ['fab'],
data : [['CRS1'], ['CRS2'], ['CRS3'], ['CRS4'], ['CRS5']],
reader : new Ext.data.ArrayReader({}, ComboRecord)
});
var ComboRecord = Ext.data.Record.create([{
name : 'item',
type : 'string'
}]);
classStore.loadData(passArray);
no takers so I made this even simpler.
function createWindowDelete(passArray, type) {
var classStore = new Ext.data.SimpleStore({
fields : ['class'],
data: passArray
});
I checked it in firefox-firebug and the store has the values in Json but the item is only the first character or each element in the array.
passArray has
["E-admin_DemoTool2", "E-admin_DemoTool3", "E-admin_DemoTool_with_Template", "E-admin_VR18", "E-admin_VR20", "E-admin_VR22"]
But the store items are E,E,E,E,E,E but the Json value is the complete value.
I am surprised it is loading anything at all. The docs for ArrayReader specify that it needs a 2 dimensional array.
Doh having a homer moment, I read that more then once and missed it, thanks
I am surprised it is loading anything at all. The docs for ArrayReader specify that it needs a 2 dimensional array.
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home |