Opened 9 years ago

Last modified 9 years ago

#13405 closed defect

dojo.store.DataStore correctly gets item by identity but don't always report their correct identity on getIdentity — at Version 1

Reported by: cjolif Owned by: Kris Zyp
Priority: high Milestone: 1.7
Component: DojoX Data Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

When you wrap a dojo.data store in a dojo.store.DataStore you get correct result when calling: var myItem = store.get(anItemID) but if you try to get the id on the item itself: store.getIdentity(myItem) it won't give the correct ID. This happen when implicit ID is used (for example on CsvStore this is the row #, for XmlStore this is the Xpath query).

In other terms: store.get(store.get(anItemID).getIdentity()) does not work when implicit ID is used.

Attach a test case showing the problem.

Change History (4)

Changed 9 years ago by cjolif

Attachment: DataCsvStore.js added

Changed 9 years ago by cjolif

Attachment: goog_prices.csv added

comment:1 Changed 9 years ago by bill

Description: modified (diff)
Owner: changed from Jared Jurkiewicz to Kris Zyp

Changed 9 years ago by cjolif

Attachment: dojo.store.DataStore.patch added

possible patch (IBM, CCLA)

Note: See TracTickets for help on using tickets.