Opened 7 years ago
Closed 7 years ago
#16404 closed feature (invalid)
JsonRestStore not saving when using query string
Reported by: | yalcinoz | Owned by: | yalcinoz |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9 |
Component: | DojoX Data | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I have a JsonRestStore? whose target is "/items/". As I use Tastypie at my backend, when I want to filter the items, the target value must be something like that: "/items/?parentId_exact=[id_value]".
So when I call the save() method of the store, it gives me an error as its target value is now "/items/?parentId_exact=[id_value]/[item_id]" and not a valid REST type url.
Is there a way to prevent this problem? (Dynamically changing target value or storing query string in a different property of the store object.)
Change History (2)
comment:1 Changed 7 years ago by
Milestone: | tbd → 1.9 |
---|---|
Owner: | changed from Kris Zyp to yalcinoz |
Status: | new → pending |
comment:2 Changed 7 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
dojo/data is deprecated in favor of dojo/store.
Have you looked into using dojo/store/JsonRest instead?