Opened 9 years ago

Closed 6 years ago

#11121 closed enhancement (wontfix)

Allow dojox.data.JsonRestStore to configure the reference attribute

Reported by: reamsc Owned by: Kris Zyp
Priority: high Milestone: future
Component: DojoX Data Version: 1.5.0b2
Keywords: Cc:
Blocked By: Blocking:

Description

I'd like to make a feature request. Currently for the JsonRestStore? references have to be in a named attribute called $ref. What I'd like to see is that when the JsonRestStore? is instantiated, you're allowed to tell it what a $ref attribute is. If your server side is already returning URL's with say a 'url' tag instead of $ref, because other clients (non Dojo clients) use this tag, now the data side doesn't need to return to URL's, one for the $ref attribute (for Dojo clients) and the 'url' attribute for other clients.

Change History (5)

comment:1 Changed 9 years ago by Kris Zyp

Milestone: tbd1.6

Note that you can set dojox.json.ref.refAttribute to a custom property name (instead of $ref). However, this is a single global setting, and so admittedly a bit clumsy. I have strategizing on putting together a much more flexible system in place for 1.6 based on the latest JSON Schema RFC, so this is definitely an important feature.

comment:2 Changed 8 years ago by Adam Peller

Component: GeneralDojoX Data
Owner: changed from anonymous to Kris Zyp

comment:3 Changed 8 years ago by Kris Zyp

This is configurable by setting dojox.json.ref.refAttribute to your desired reference attribute.

comment:4 Changed 8 years ago by bill

Milestone: 1.6future

(sadly) punting seemingly abandoned ticket and meta tickets to future

comment:5 Changed 6 years ago by Colin Snover

Resolution: wontfix
Status: newclosed

dojox/data is abandoned. Some dojox/data stores have been upgraded to use the Dojo Store API and can be found at https://github.com/kfranqueiro/dojo-smore.

Note: See TracTickets for help on using tickets.