#13405 closed defect (fixed)
dojo.store.DataStore correctly gets item by identity but don't always report their correct identity on getIdentity
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 )
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.
Attachments (3)
Change History (6)
Changed 10 years ago by
Attachment: | DataCsvStore.js added |
---|
Changed 10 years ago by
Attachment: | goog_prices.csv added |
---|
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Jared Jurkiewicz to Kris Zyp |
Changed 10 years ago by
Attachment: | dojo.store.DataStore.patch added |
---|
comment:2 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 10 years ago by
Milestone: | tbd → 1.7 |
---|
Note: See
TracTickets for help on using
tickets.
possible patch (IBM, CCLA)