Questions tagged [jsonreststore]

JsonRestStore is a lightweight datastore implementation of an HTTP-based (RFC 2616) client with RESTful data interaction capabilities.

JsonRestStore is a lightweight datastore implementation of an -based (RFC 2616) client with RESTful data interaction capabilities. JsonRestStore provides full read, write, and notification capabilities through standards based HTTP/REST interaction with the server using GET, PUT, POST, and DELETE commands. This data store allows you to communicate with server side database/persistent data storage using the Dojo Data API with and efficiently handles create, read, update, and delete (CRUD) operations.

using JsonRestStore can greatly simplify client server communication, interacting can be done simply using straightforward JavaScript instead of having to build your communication for CRUD actions. JsonRestStore also store objects in a format to ease direct property access for significant performance advantages.

You should use this tag is the question is related to the use of JsonRestStore API in some application.

26 questions
2
votes
1 answer

dojo charting - Date as X Axis - Dates plotted are incorrect and not related to those retrieved from the backend

We are working on a stock related application involving charting using dojo 10.0.3. Due to the nature of the application, we need to use date as the X-Axis. And both the date (X-Axis) and various prices (Y-Axis) are from a backend database retrieved…
tel place
  • 41
  • 4
2
votes
2 answers

Xpages: Can you build a Dojo Data Grid with a with a Rest service in a separate XPage?

I have created an Xpage with only one element, a JSON Rest service that points to a view (I guess I should probably put this in a CC). I want to build another Xpage with a CC that contains a CC that contains a Dojo Data Grid that points to this rest…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
0 answers

how to disable Cache in a REST Tree in DOJO with a complete code to reproduce it

The following code shows a tree in Dojo using dojox.data.JsonRestStore with one node named Changing0 with children to be lazy loaded. the problem is in updating the tree by renaming the one node (Changing1, Changing2,...) without changing its…
Paul Ghobril
  • 143
  • 1
  • 1
  • 7
1
vote
0 answers

How to turn off auto refresh with Gridx with JSONRest store?

I am using Gridx with a JSONRest store. Does anyone know how to turn off the auto refresh function of the Gridx with the JSONRest store? I want to add and remove multiple rows at a time. However, every time I call grid.store.add() or…
Bryan
  • 54
  • 5
1
vote
1 answer

Dojo Gridx Refresh Table after specific action completed?

I have a grid created using Gridx which will be used to monitor and manage entries. When a user clicks a row of the table, a dialog pops up and allows the user to select ignore or respond. When either is clicked, I have to update an entry in my SQL…
CustardBun
  • 3,457
  • 8
  • 39
  • 65
0
votes
0 answers

Dojo 1.15 Gridx Custom messages via Status Code from Http Response

I'm quite new to the dojo feameqork. The last few days I was working with dojo and gridx to create a view with data from a json rest store. Now I need to get custom error messages from the http response codes and display them inside the grid. The…
0
votes
1 answer

How to get the response headers in dojo/store/JsonRest?

I’m using dojo/store/JsonRest to fetch for some data. But I also need the response headers. How can I access them? this.transport = new JsonRest({ target: "my/target" }); this.transport.query({}).then(function(resp) { debugger; // <- I want to…
chitzui
  • 3,778
  • 4
  • 28
  • 38
0
votes
1 answer

How to prevent cache on dojox/data/JsonRestStore?

While updating data of a dojo tree using a REST Store I have to change the name of the item. caching is avoiding this change for items already used in the tree. How to disable caching. Here is a part of the code: var prod= { store: null, model:…
Paul Ghobril
  • 143
  • 1
  • 1
  • 7
0
votes
1 answer

dojo JsonRest call not working

I'm trying to call my RESTful service from dojo. All I can see from debugger is, it tries to call the service but it doen't reach there. There are no errors. I can see the 'hello' alert. define(["dojo/store/JsonRest","dojo/domReady!"], …
coder247
  • 2,913
  • 19
  • 50
  • 70
0
votes
2 answers

dijit/Tree is not updated when connected to a dojo/store/JsonRest

I have modified the dojo tutorial at http://dojotoolkit.org/documentation/tutorials/1.10/store_driven_tree/demo/demo.html to read from a JsonRest store. The problem is that the tree display doesn't update when I click "Add new child to selected…
Dominic
  • 1
  • 1
0
votes
1 answer

dgrid / dstore / Rest - How to add additional query parameters to request

I used an older version of dgrid (onDemandGrid) toghether with a dojo JsonRestStore. My web page has some input fields (e.g. date, name etc). After changing one of these fields I change the query of the grid: grid.setQuery({y: year, m: month, l:…
DieterBk
  • 3
  • 2
0
votes
1 answer

Grid with custom JsonRest not loading data

I have grid(gridx/Grid) connected with my custom store which extends dojo/store/JsonRest. My server call gets success and store.data will loaded properly. I have my custom query() method in my store(extends JsonRest). Instead of GET request I use…
saravanakumar
  • 1,747
  • 4
  • 20
  • 38
0
votes
1 answer

Json response with php

I am trying to get JSON response using PHP. I want to have Json array not the HTML tags. But the output shows HTML tags as well.I want to remove this HTML output! PHP code is as follows: I don't know how to do this ? Please help. Thanks in advance…
Stack
  • 1
0
votes
1 answer

Dojo FilterSelect not populated by JsonRest

Hi I have the following