Opened 6 years ago

Closed 6 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 6 years ago by dylan

Milestone: tbd1.9
Owner: changed from Kris Zyp to yalcinoz
Status: newpending

dojo/data is deprecated in favor of dojo/store.

Have you looked into using dojo/store/JsonRest instead?

comment:2 Changed 6 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

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!

Note: See TracTickets for help on using tickets.