Opened 14 years ago

Closed 14 years ago

#7324 closed defect (fixed)

[Patch] 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:


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)

IFRS-array.patch (1.1 KB) - added by Nathan Toone 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Nathan Toone

Attachment: IFRS-array.patch added

comment:1 Changed 14 years ago by Nathan Toone

Resolution: fixed
Status: newclosed

(In [14618]) Fixes #7324 - allow array-based items to also have array-based sub-items !strict

Note: See TracTickets for help on using tickets.