dojo.data

How well does the Recess! PHP Framework play with dojo.data?

Hello, I've been trying to find the perfect php framework for me that integrates with dojo smoothly. I am trying to avoid creating my own framework and I don't want to use the Zend Framework since I don't like it and I have a choice since it's my project. I really like the Recess! framework. It looks easy to get started with a easy to de...

Preventing Dojo data.store race condition.

I'm using dojo.data.ItemFileReadStore to get data from a json source into a dojox.grid.DataGrid. I replace the datastore with DataGrid.setStore(), which works fine, except when I try dto do it before the old datastore has finished loading, which instead causes the DataGrid to crash and being unable to recover. How can I prevent this race...

How do I get the item count (size) of a dojo datastore?

I don't see anything in the read API that provides access to this: http://api.dojotoolkit.org/jsdoc/1.3.2/dojo.data.api.Read ...

adding button to dojo datagrid

I am trying to add a delete button to the Dojo Datagrid and I currently have the following javascript: function createGrid() { gridTmp = new dojox.grid.DataGrid({ store: jsonStore, structure: [ {name: "Report No", field:"inc_number"}, {name: "Incident Date", field: "Incide...

dojox.grid.DataGrid dojox.data.HtmlStore

It would be so slick if you could use dojox.grid.DataGrid and dojox.data.HtmlStore together. Maybe there is an easier way to get sortable tables with Dojo, but this is all I can come up with... and it doesn't quite work. There is a DojoCampus example of this but it does not work either! What am I missing? <html> <head> <style type="...

Display Custom Label from data store with dojox.charting

I am using the dojox.charting.widget.Chart2D and I am trying to retrieve the data from an dojo.data.ItemFileReadStore. I can retrieve the data, and everything works and displays, except I cannot seem to find a way to display custom labels on the items. My HTML snippet is: <div dojoType="dojo.data.ItemFileReadStore" jsId="chartDataStor...

dojox.charting Setting Custom Tooltip Labels from ItemFileReadStore

I discovered that the dojox.charting.action2d.Tooltip takes a custom function to provide the text for the labels. The challenge is that the text of the label that I want to display is contained within dojo.data.ItemFileReadStore which the chart series is pointed at. I am trying to figure out some way to tie back the information passed ...

Properly destroying dojo DataStore

I am extensively using declarative dojo DataStores in my application and connecting them to various declarative data driven Widgets. The problem comes in when I attempt to "destroy" the ContentPane that contains the DataStores. All the declarative examples using datastores use the attribute jsId to have the dojo parser set the datastor...

Dojo + ServiceStore + SMD + JSONP = removed escaped characters

So, I have a ServiceStore in dojo where the response has escape characters like so: { name:"\"Fred\" and \"Wilma\""} In my deferred callback for this service, the JSON string coming in looks like: { name:""Fred" and "Wilma""} which causes dojo.toJson(results) to blow up. The string coming back from the server is correct (Have ...

In what order does DOJO handles ajax requests?

Hi, Using a form in a dialog box I am using Dojo in jsp to save the form in my database. After that request is completed using dojo.xhrPost() I am sending in another request to update a dropdown box that should include the added form object that was just saved, but for some reason the request to update the dropdown is executed before s...

Dojo Grid with editable and non-editable cells

We are using dojo 1.4.2 in our project. We have a page where we display a dojox.data.EnhancedGrid from ItemFileWriteStore. We have a use case based on the user access, we need to have a column editable for some rows; for rest of the rows this column should be read only. So what we are looking at is setting the editable:true at the cell...

DOJO: what's the difference be design between JsonQueryRestStore and QueryReadStore

Hi, I'm learning Dojo 1.4. And I have difficulties with understanding all dojo's data stores. Particular I wonder what's the difference between JsonQueryRestStore and QueryReadStore ? JsonQueryRestStore has query facilities and Json support, ok. But QueryReadStore also expects Json in response (somebody knows where does the expected for...

Can you make a dojo.data store from properties of another dojo.data store?

The title says it all. Is it possible to make another dojo.data.ItemFileWriteStore out of the properties of items from an existing dojo.data.ItemFileWriteStore? For example, i have a store containing an item with an array as a property. I want to make a new store out of the properties of one of those arrays, like so: ... new dojo.data....

Dojo caching issue in Spring

I am having an issue where dojo seems to be caching html and then not properly redisplaying it. If I call this function once it works fine, and it works on all subsequent calls if the parameters are unique. If I call it twice with duplicate parameters then essentially nothing happens. I'd appreciate any help. function findN...

How to combine Dojo.Deferred + dojo.data.read

I have a chain of asynchronous events that i want to execute, some of them fetch commands. I understand the basics of using dojo.Deferred, but all of my attempts so far to add a fetch callback have failed... What im trying to do is 1) add a fetch call to my Deferred object 2) have that fetch function be run, possibly with some extra ar...

Zend_Dojo_Data from SQL View (primary key not available, can it be done?)

Well, i'm trying to achieve something but i think it is not possible. Here's where i am. SQL Table T with columns colID , colA, colB. colID is the primary key I needed to retrieve all the values specified in colA "unioned" with colB, so I created a view CREATE OR REPLACE VIEW vw_MyView (col_Common) AS (SELECT col_A AS col_Common FROM ...

Dojo send Form to php-file then get the response in a div tag

hallo, i would like to try a simple xmlhttprequest example to post a form to a php-file, the php-file reads the elemsnts value then give it back to a div tag, it works with a tradional code, but not with dojo, a get an error (firebug) thant sent is aborted, so this ist the content of test.html content of test.php: echo $_POST['text']; th...

Cant read data in java script from the node using dojo

Hi, I have searched for hours through net trying to find a solution to my problem but couldn't find any.Any help would really save a lot of time of mine.I have implemented the tree using dojo in struts2 using the tag where sx is the prefix of my dojo taglib. Upon clicking on the node i need to read the value stored in the node.The no...

Dijit/Dojo Inline - Filtering Select - DataStore

I am using an inline filteringselect with datastore, as follows: I am using ABBR as the identifier and NAME as the value. The filtering selects and works correctly, but I have two issues. Firstly, how do I retrieve the ABBR for the selected option NAME? I have tried various things, including .innerHTML but that only retrieves the...