Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default [FIXED-180] DataStore ArrayStore data saving as string, not array

    [FIXED-180] DataStore ArrayStore data saving as string, not array


    Designer 1.0.2.2
    Windows 7 Pro.

    Problem:
    Create an ArrayStore.
    Add to "data" this string... [[0,'a'],[1,'b]]
    I would assume 2 records but it is saving as a string, not an array.
    So when I "Load Data" it says "16 records loaded"
    Attached Files

  2. #2
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Hi Artistan,

    When the object or array editors cannot evaluate an entry for any reason (syntax error, object undefined, etc.) then it will translate it into a string automatically verbatim. I believe the data is storing as a string because you are missing a single-quote after "b". So when that is evaluated, it fails because of a syntax error and then instead stores it as a string. Just add a single-quote after the "b" and it will be good to go.

  3. #3
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default Still an issue.

    Still an issue.


    I added the quote after that, and still no good, "17 records loaded"
    I just did that quick test because it is not working in another project I am working on. to large to post.

  4. #4
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    It works for me: http://clip2net.com/clip/m50071/1278...31510-95kb.png

    But with that said, the # of records loaded is showing an incorrect number. However, the data is actually loaded as 2 records. So I will open a ticket to solve the incorrect number that shows after the data is loaded.

    Thanks for reporting this!

  5. #5
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Wink Not quite!

    Not quite!


    Thank You.
    Attached Images
    Last edited by Artistan; 12 Jul 2010 at 10:30 AM. Reason: I need to read more :)

  6. #6
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    This is fixed for the next release.

  7. #7
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    Sweet, thanks.

  8. #8
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default Display also may be a problem.

    Display also may be a problem.


    Attached updated test.
    When trying to preview a combo box with the ArrayStore data, preview does not work.
    Attached Files

  9. #9
    Sencha User
    Join Date
    Jun 2010
    Location
    Buenos Aires, Argentina
    Posts
    213
    Vote Rating
    9
    ldonofrio will become famous soon enough

      0  

    Default


    Yes, it's true.
    Also, why we can't set the data [array] directly in the 'store' config of the combobox? It will be very usefull, no need for arraystore definition.

    Thanks

    Quote Originally Posted by Artistan View Post
    Attached updated test.
    When trying to preview a combo box with the ArrayStore data, preview does not work.

  10. #10
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    The ArrayStore is VERY useful for me. Allows reuse in multiple areas of the same store.

Similar Threads

  1. Where can I find documentation on writing and saving to a XML DataStore?
    By brink668 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 5 May 2010, 8:32 AM
  2. saving xml to a String variable
    By Tomek in forum Ext GWT: Discussion
    Replies: 5
    Last Post: 19 Oct 2009, 4:10 AM
  3. [FIXED][3.0] Ext.data.Store removed Array
    By dj in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 23 Apr 2009, 6:23 PM
  4. Replies: 0
    Last Post: 3 Jun 2008, 7:07 AM

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar