Hi, I was wondering if it is possible to loop through a Nested Gallery?
ForAll(outerGallery.AllItems, ForAll( innerGallery.AllItems, DO FORMULA))
I can do a nested ForAll on a different collection in the outerGallery ForAll without problem.
I have also checked the length of innerGallery.AllItems by placing a Label in the outerGallery with the CountRows(innerGallery.AllItems) and It does show a proper length. For some reason it doesn't see the length of innerGallery.AllItems outside of the loop or something?
If your formula is intended to get a total number of rows for all inner and all outer rows combined, I'm not sure that is going to work in general. Unless you append a variable every time. I think you will end up getting just the number of rows in the last sub-gallary for each. CountRows() does not sum up as you go. Its a one time result. It does not accumulate. You probably need to get a variable going and use it to do a loop sum, so to speak. I dont have a lot of time today to put an example together.