-
12 Jul 2010 9:48 AM #1
[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"
-
12 Jul 2010 9:58 AM #2Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 6
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.
-
12 Jul 2010 10:02 AM #3
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.
-
12 Jul 2010 10:12 AM #4Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 6
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!
-
12 Jul 2010 10:24 AM #5
Not quite!
Not quite!
Thank You.
Last edited by Artistan; 12 Jul 2010 at 10:30 AM. Reason: I need to read more :)
-
12 Jul 2010 10:30 AM #6Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 6
This is fixed for the next release.
-
12 Jul 2010 10:31 AM #7
-
12 Jul 2010 10:39 AM #8
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.
-
14 Jul 2010 8:24 AM #9
-
14 Jul 2010 8:30 AM #10
The ArrayStore is VERY useful for me. Allows reuse in multiple areas of the same store.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Where can I find documentation on writing and saving to a XML DataStore?
By brink668 in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 5 May 2010, 8:32 AM -
saving xml to a String variable
By Tomek in forum Ext GWT: DiscussionReplies: 5Last Post: 19 Oct 2009, 4:10 AM -
[FIXED][3.0] Ext.data.Store removed Array
By dj in forum Ext 3.x: BugsReplies: 1Last Post: 23 Apr 2009, 6:23 PM -
[FIXED] AppEvent(int, Data) ambiguous with AppEvent(int, String) when Data is String
By darrellmeyer in forum Ext GWT: Bugs (1.x)Replies: 0Last Post: 3 Jun 2008, 7:07 AM



Reply With Quote