Login Register

dojo.data.ItemFileReadStore

ComboBox with dojo.data.ItemFileReadStore doesn't work on IE7

Hello, I've got this nasty problem... I've this combobox:

Operatore:

Using cross-referenced data stores

I'm building a webapp that uses two data sources (each associated with a database table), and I've got each working independently as a dojo.data.ItemFileReadStore.

I can asynchronously access either table by itself, using fetch and its onComplete and onItem "callbacks".

My problem is that each item in data source A holds a reference (an id number or key) to an item in data source B but I've yet to find a very elegant way to generate an HTML table of items from data source A that also includes the referenced info from data source B.

Returning a value from a dojo.data query?

Hello. I'm wondering if it's possible to return a value directly from an ItemFileReadStore query? I'm not seeing a way to do this, other than by setting a global var. But I'm assuming there must be a way - and I'm just not bright enough to figure it out.

MyLib.dataSources = {
identifier: 'id',
label: 'Source Row sources',
items: [
{ id:'eng_101', name:'English 101', on:false },
{ id:'astr_405', name:'Astronomy 405', on:false },
{ id:'flickr', name:'Flickr', on:true},
{ id:'add_url', name:'Add URL', on:false },

How do I dynamically add GET parameters to the url of my dojo.data.ItemFileReadStore?

Hello,

I am new to Dojo and I am trying to create an ItemFileReadStore to feed a grid. Using the following markup, I get what I am looking for when the server reads the item parameter from the url.

<div dojoType="dojo.data.ItemFileReadStore" jsId="jsonStore" url="http://mysite.com&item=1234">
</div>

If I need to pass a different item number to the server dynamically, how would I go about doing that? I tried creating the Store programmatically like this, but the code throws an error on the last statement:

function getItem(){

grid doesn't render ???

I have a structure as shown below :


dojo.provide("grid.sample");

(function(){
grid.sample.structure = [{
cells: [[{
name: 'Dow',
field: 'dow',
rowspan: '2'
}, {
name: 'Stay Date',
field: 'staydate',
rowspan: '2'
}, {
name: 'T1 (1-6)',
style: 'background: #d7d7bF;'
}, {
name: 'T2 (7-13)',
style: 'background: #d7d7bF;',
colspan: '2'
}, {
name: 'T3 (14-20)',

Treeview with Json DATA

Hello,

How can I do to specify node's icon from Json data in a Tree Component

part of json data :
{ identifier: 'name',
label: 'name',
items: [
{ name:'Africa', type:'continent', icon:'continent.png'
children:[{_reference:'Egypt'}, {_reference:'Kenya'}, {_reference:'Sudan'}] },
{ name:'Egypt', type:'country' },
{ name:'Kenya', type:'country',
children:[{_reference:'Nairobi'}, {_reference:'Mombasa'}] },

docs, hacks, solutions, ..

thanks for your help.

newbie dojo.data.ItemFileReadStore shows "error getting items" when assigned json data is from javascript

Hello,

I am trying to create dojo thumbnail using following syntax.

var mess = new Array();
                //getKfJasonData returns the pics in json format from javascript
                mess[0] = getKfJsonData();                 
                thmbData.data = mess[0];
                //I get correct output here in the alert
                alert ('data: ' + thmbData.data );

dojo.data.ItemFileReadStore returns "error getting item" when assigned data is from javascript.

Hello,

I am trying to create dojo thumbnail using following syntax.

var mess = new Array();
                //getKfJasonData returns the pics in json format from javascript
                mess[0] = getKfJsonData();                 
                thmbData.data = mess[0];
                //I get correct output here in the alert
                alert ('data: ' + thmbData.data );

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

Roles of DojoData model and store, now and in future?

A month ago we were speculating about the roles of the model and the store. The model seems somewhat redundant when used with a store. Since there's no definite answer and improving grid integration with dojo.data was already mentioned in grid priorities I'd like to ask for some clarification of their current/future roles.

Syndicate content