Opened 13 years ago
Closed 13 years ago
#7324 closed defect (fixed)
[Patch] dojo.data.ItemFileReadStore: not adding array-based sub-items
Reported by: | Nathan Toone | Owned by: | Nathan Toone |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Data | Version: | 1.1.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The ItemFileReadStore? allows you to use arrays as top-level items, but it will not allow you to use them as any other item... for example, you can do this:
items: [ ["a", "b"], ["c", "d"] ]
and then do store.getValue(item, "0") to get the first value in that array item.
However, you cannot define items like this:
items: [ [ "a", "b", [ ["c", "d"] ] ] ]
The actual definition works - but if you do store.getValues(item, "3"), you get the arrays that are "sub-items" - but you cannot do store.getValue() on those sub items.
A simple change to the logic of valueIsAnItem in _getItemsFromLoadedData will allow for this to work.
Attachments (1)
Change History (2)
Changed 13 years ago by
Attachment: | IFRS-array.patch added |
---|
comment:1 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [14618]) Fixes #7324 - allow array-based items to also have array-based sub-items !strict