Login Register

ItemFileReadStore

Correct path for ItemFileReadStore

I have pretty much copied one of the examples from thr 1.3 documentation, but can't get
the movies.csv data to display. I put it in the same directory as the html file.
What is the correct way to specify the url path on a Windows machine?

Should it be "file:///c:localpath/movies.csv" or"c:/localpath/movies.csv" or "./movies.csv" or what?
I can't find the correct incantation.

var store4 = new dojox.data.CsvStore({ url: 'movies.csv' });

var layout4 = [
{ field: 'Title', name: 'Title of Movie', width: '200px' },

Tree error when ItemFileReadStore has items with an attribute that has an object value

I have JSON data that I read with an ItemFileReadStore and wrap with a TreeStoreModel. The items in the data have an attribute "value" which may be a string, number, or object. If it's an object I get the followed error in Firebug:

error loading root: TypeError: _48 is undefined message=_48 is undefined

  • If I remove the Tree element, no error occurs. (The GET occurs)
  • If I edit the "value" attribute to a scalar (not an object) no error occurs.

ItemFileReadStore and Dijit.Tree Json formatting issue

I'm using the dijit.Tree control with an ItemFileReadStore to populate the tree from a .net WCF restful web service returing JSON. Problem is that the items array of object I'm returning has to have a children array whether it's populated or not. This serializes to "children":null.

dojo.data.ItemFileReadStore and dijit.Form

I have to design a form layout. Whenever the HTML is loaded, the form has to show up and the values of the form should be values from a data store (ItemFileReadStore). I have struggled for two days and could not find any way out. Any solutions?

System info

ItemFileReadStore - dumb problem

Consider the following simple code:

var mData ={ identifier: 'name', items:
[ {'name': 'strength', 'value': '5 of 5'},
{'name': 'Romberg', 'value': 'negative'},
{'name': 'tandem', 'value': 'unsteady'},
{'name': 'tongue', 'value': 'deviates in midline'},
{'name': 'pronator drift', 'value': 'none'},
{'name': 'biceps, triceps', 'value': '2+'},
{'name': 'knees', 'value': '3+'},
{'name': 'ankles', 'value': '1+'}
]
}

var mFile = "motorold.json";
var eStore = new dojo.data.ItemFileReadStore({url: mFile});

Bringing PHP, MySQL, and Dojo together

I made a pact that I’d add documentation on how to use PHP, MySQL, and Dojo together, when finishing the Dojo ItemFileReadStore demo. It’s not easy to format a JSON specific file with PHP, which includes special characters and requires JSON members. With several PHP JSON encoders out there, I recommend using the PHP encoder which came bundled with the toolkit (dojo/tests/resources/JSON.php).

ItemFileReadStore and PreventCache

I'm using Dojo 1.1.1. What it the syntax to use preventCache in ItemFileReadStore? Thanks.

pulling items out of a store in vars

Please forgive beginner question, all alone in rural zone
no one knows anything about dojo

http://colleenweb.com/dtdg-CAFEkids.html

Am fooling with example in Matt's book on page 208. I am getting the store OK, all the commented code works. It is only
when I try to bind a specific item to a local variable.
I get error msg from Firebug
Using FF3 Ubuntu
I need to be able to do this because the remaining examples use this technique to start writing to datastore.
My code looks just like in the book AFAIK. It is this line:

Multiple FilteringSelect using Single JSON Data Store

Is is possible for multiple filtering selects (or combo boxes) to use different sets of data inside a single JSON data store?

I have a form with multiple FilteringSelects, whose items I want to retrieve from a file on the server, but I don't want to have to have a separate file for each FilteringSelect.

I was hoping that I could use the ItemFileReadStore to load a single JSON Data file that contains the multiple sets of items that I can use to populate multiple FilteringSelects.

Grid not displaying data

Hi,
I am new to dojo and still learning it. I am facing a problem that I am sending a JSON response from the server and Iam trying to display that response data in the grid. Well I am getting the response back to the client but data is not vivible on the grid and the debug console shows no error. Can any one help mw ASAP as I need this very urgently.

Thanks in advance.

Syndicate content