HZGN.COM
welcome to my space
X
Welcome to:hzgn.com
Search:  
 HOME   [Solved]Store dropping values
[Solved]Store dropping values
Published by: smith 2009-01-07
  • 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
    PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [Solved]Store dropping values , Please add it free.
  • will we be able to fly any time in the future
  • oratory about reading ideas
  • what do you think of this poem by a muslim
  • what dose this dream mean
  • arabic help what does this mean
  • any awesome and i mean awesome ideas for the science fair
  • what is the summary of the book by warren flynn gaz
  • having psychic abilities
  • what can you guys tell me about this subject
  • whats beyond space did you ever wonder
  • a simple yes or no question have you ever had a paranomal experience
  • what do we call a ufo if it is identified
  • what do you think of alien abduction
  •  
  • bush and the shoe can arabic speakers translate this
  • what types of careers could i do sorry if wrong category
  • paranormal orb pictures evaluate please
  • what are some interesting facts about space
  • do you believe of a north american union possibility with a recession under us
  • i believe this is the only real paranormal investigation show on tv and believe me i watch a lot any input
  • why don 039 t people understand do you agree
  • what kind of technik could this be
  • do you believe roswell agent philip j corso is valid about his assumption about the roswell ufo crash
  • could there be a parallel universe
  • which worries you more the government concealing contact with aliens or the substances that are spraying
  • anyone had an alien encounter
  • finals are coming and
  • was i hallucinating yesterday

  • About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 hzgn.com All Rights Reserved
    Site made&Support support@hzgn.com    E-mail: web@hzgn.com