Closed mmally closed 4 months ago
a document has e.g. 10 items I set a filter so that only 3 items remain e.g. Index 1, 4 and 6
if I now call document.lotCount it returns 3. now I want to iterate those 3 filtered items:
for (var i=0; i<items; i++) { let current=thisDoc.lots.at(i) console.log("ItemId:" + current.itemId) }
this returns - of course - the items at index 0, 1 and 2.
Currently I see no way to access only the filtered lots
New docs are available now: https://www.brickstore.dev/extensions/qml-brickstore-document.html
Thank you for the quick solution !
a document has e.g. 10 items I set a filter so that only 3 items remain e.g. Index 1, 4 and 6
if I now call document.lotCount it returns 3. now I want to iterate those 3 filtered items:
this returns - of course - the items at index 0, 1 and 2.
Currently I see no way to access only the filtered lots