Hi! currently I'm having a problem with this.
I have a gallery with 2 items. each element has a "InicioMinutos" and "FinMinutos" value.
I have a collection of ALL the posible values of "InicioMinutos" and "FinMinutos".
those values are taken from a column "Minutes" in a collection called Times
I want to have a collection of all the Times inbetween InicioMinutos and FinMinutos of each element.
So the collection should contain all the values between InicioMinutos and FinMinutos of the first element and all the values between InicioMinutos and FinMinutos of the second element.
This is the code I'm using
ClearCollect(Ocupados; ForAll(CalendarEventsGallery1_4.AllItems; Filter(Times; Minutes >= Value(InicioMInutos.Text) && Minutes <= Value(FinMinutos.Text))))
And while this works fine, the problem is that it creates a collection of tables with 2 values, one for each element of the gallery.
each table with the same columns, the ones of the Times collection.
I want it to be ONLY 1 table with all the values, since I need to use values from all the elements in the gallery I HAVE to use the forall.