Page 1 of 2 12 LastLast
Results 1 to 10 of 13

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

    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
      0  

    Default [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 Attached Files

  2. #2
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
      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
      0  

    Default 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 User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
      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
      0  

    Wink Not quite!

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

  6. #6
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
      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
      0  

    Default

    Sweet, thanks.

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

    Default 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 Attached Files

  9. #9
    Sencha User
    Join Date
    Jun 2010
    Location
    Buenos Aires, Argentina
    Posts
    213
    Vote Rating
    10
      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
      0  

    Default

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

Page 1 of 2 12 LastLast

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •