-
23 Mar 2010 5:45 AM #151
So you are saying that u where using the Beta 5 release? (The one from October 2009) ?
-
23 Mar 2010 5:51 AM #152
I'm using whatever is included in the zip, I don't recall the version.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
23 Mar 2010 5:55 AM #153
So you where using Beta 5 before right?
So you where using Beta 5 before right?
The (your) zip just says 3.5 but not which RC it is... however...
another thing i just noticed (i 'm just starting to use Direct so please bear with me):
Why is it that a "Read" Operation returns the data in the format suitable for a JSONStore?
Is this specific to your examples or is this by design?
For large amounts of data, that's not gonna work as there would be a tremendous amount of overhead. I'd rather have the response like this:
Could this be accomplished without miss-using the JSON-Store?Code:{ "fields": [ "foo", "bar", "test" ], "data": [ [ "foo", "bar", "test" ], [ "foo", "bar", "test" ], [ "foo", "bar", "test" ] ] }Last edited by Mjollnir26; 23 Mar 2010 at 5:57 AM. Reason: dont ask twice!
-
23 Mar 2010 4:23 PM #154
I'm not sure what you're getting at.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
24 Mar 2010 12:20 AM #155
Ok i'll try to clarify:
1) I downloaded the Router-Package, "installed" the Example-Solution and tested it -> WORKED FINE
But i like to always have the latest version of my libs and to compile myself if i can, so i linked
the Ext.Direct Assembly to the latest (few weeks old) build of Newtonsoft which didn't work for TWO reasons:
First it didn't compile, but fixing that was a piece of cake (or so it seemed), just had to change a few
Parameter-Lists of Methods which didn't do anything in the first place.
Second, after getting it to compile, i tried the Echo-Sample -> BROKE
Seems something has changed internally in the Newtonsoft Assembly and i don't have time (or the knowledge) to investigate that.
That's why i wanted to know the exact Newtonsoft-Version used by you.
2) Which leads my to my second point about the Ext.Direct Server Calls.
The point i was trying to make here is, that IMHO returning "table-ish" Data, (an array of objects which share the same structure)
as JSON-Objects is overhead because each "row" or "record" contains the complete Field definition over and over again.
My current Project will have to deal with big grids, lots of data etc. so i wanted to ask if that behaviour could be changed / extended / overriden
to account for these cases, where JSON-Objects are just not appropriate.
Other than that, thanks for your work and for taking the time to answer
Sorry if my writing was too confusing, i'm not a native Speaker.
-
29 Mar 2010 9:12 AM #156
Same problem here, after fixing and compiling Ext.Direct project with JSON.NET 3.5r6 (just downloaded from http://json.codeplex.com), i get a runtime exception.
Someone has fixed the issue?
-
29 Mar 2010 12:57 PM #157
Ok the problem seems fixed by replacing in DirectProcessor.cs this code:
with this codeCode:List<DirectRequest> requests = JsonConvert.DeserializeObject<List<DirectRequest>>(json); if (requests.Count > 0) { JArray raw = JArray.Parse(json);
evant, will be nice to have a new version of Router with this patch and updated JSON.NET (currently 3.5r6)Code:if (json.StartsWith("[") && json.EndsWith("]")) { List<DirectRequest> requests = JsonConvert.DeserializeObject<List<DirectRequest>>(json); JArray raw = JArray.Parse(json);
-
29 Mar 2010 2:36 PM #158
I don't mind updating it, but is there any reason you can't just compile it yourselves? The source is all there.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
30 Mar 2010 5:47 AM #159
i've already compiled it, this is for having this patch applied in the next version, so i don't have to reintegrate it.
-
30 Mar 2010 6:18 AM #160
evant, under what license is the code released?


Reply With Quote
