Login Register

ItemFileReadStore

Dojo 1.1 BorderContainer and ItemFileReadStore don't work together, bug?

Hi,

I am using test_grid_layout_borderContainer.html under dojox/grid/tests as starting point. test_grid_layout_borderContainer.html works fine without any modifications. However, if I changed the data store with ItemFileReadStore, there is no data showing up but a red background color. Is this a bug or I am missing something?

Code as below:

Test dojox.Grid Editing

@import "../_grid/tundraGrid.css";
@import "../../../dojo/resources/dojo.css";

json format issues

Hi i am new to dojo and javascript. I am trying to get mysql data into json format via php.
content of actual jsonfile which is actually php output. Okay so the error message I am missing a right bracket, but where?
Maybe I have just been looking at this two long. I don't know where I went wrong the brackets and braces seem to mirror each other

{items:[
{links:['first','prev',' dojoajax('dojo_tut/BookForm.php?Bsearch_next_page=2','Bsearch')','dojoajax('dojo_tut/BookForm.php?Bsearch_next_page=6','Bsearch')']},
{Data:['39','author of book','dewy1','title2']},

Why is onItem commented out in dojox.grid.data.DojoData?

In 1.0.2 there is:

// request data
        requestRows: function(inRowIndex, inCount){
                var row  = inRowIndex || 0;
                var params = {
                        start: row,
                        count: this.rowsPerPage,
                        query: this.query,
                        onBegin: dojo.hitch(this, "beginReturn"),
                        //      onItem: dojo.hitch(console, "debug"),
                        onComplete: dojo.hitch(this, "processRows") // add to deferred?

    }
    // console.debug("requestRows:", row, this.rowsPerPage);
                this.store.fetch(params);
        },

I'm loading some large data that I need to transform. I don't want to do that in onBegin, because that

Populating a tree with a server call works fine only the first time on IE

I use thid code on my jsp page.

div dojoType="dojo.data.ItemFileReadStore" jsId="continentStore" url="/action.do?....
div dojoType="dijit.Tree" id="tree" store="continentStore"

On IE it works fine only the first time.
When I reload the page to load new data from server, the tree doesn't loads properly, and tree seems to load the same data stored on first time.

On Firefox I don't have any problem and tree works fine every time.

Is there a way to solve my problem?

Is referencing storeItem._S to get the store reference bad?

Items get passed around a lot and normally I can pass the store around with them but in this case the item can't be accompanied by a store is it wrong to do the below?

constructor(item) 
{
    this.store = item._S; // NOTE: Is this bad???
    this.item = item;

    this.name = this.store.getValue(this.item, "name");
    etc
}

How do I get a ref to a store I declaratively instantiated??? byJsId, byId, byFunction, byMagic???


function init()
{	
    // how do you get a ref to the paletteStore here?
}

dojo.addOnLoad(init);





DataStore and FilteringSelect

My problem is this: I'm having difficulty taking the JSON data I receive from a Servlet after transforming it from JSON text to a JSON Object and using it as a dojo.data.ItemFileReadStore data store in a dijit.form.FilteringSelect. Please see below for a detailed description of the problem.

dojo 1.0.2: dojo.data.ItemFileReadStore not accepting data keyword in constructor?

I am testing out an upgrade to dojo 1.0.2 and I ran into a problem using loaded JSON data to instantiate an item store. I found a thread online that shows the same problem but no answer:

http://www.nabble.com/data-store-td14248070.html

The code example given apparently worked for one person but, like myself, not for the person using 1.0.2:


dojo.require('dojo.data.ItemFileReadStore');
var data = {data: {
identifier : 'id',
items : [
{ id : 'a', label: "Letter A" },
{ id : 'b', label: "Letter B" },

How to reflect fetch of ItemFileReadStore on FilteringSelect?

I got the result value of fetch. And then, I am wondering how to reflect that
on FilteringSelect. Without the fetch, I used the store attribute of FilteringSelect.However, with fetch, I am thinking to deal with gotList.
I hope for some advice to implement that.

QueryReadStore Demo

@import "../dojoroot/dijit/themes/tundra/tundra.css";
@import "../dojoroot/dojo/resources/dojo.css"

Using modified JSON Store w/ Grid

Hello,

I am currently in the process of trying to implement a grid using a JSON store. I have successfully done this with a JSON file that followed the ItemFileReadStore.js requirements of using an items array. I have recently been trying to figure out how best to use a custom JSON store hierarchy with my grid. The store looks like the following:


{
"top": [
{"id":1, "name": "Name1", "width":2,
"first":[
{"card":1, "circuit":7},
{"card":1, "circuit":8}

Syndicate content