I have 1 Gallery where i keep all my hire dates = GalHires
In my OnStart in the app i have a collection where I ClearCollect al my gallery values. Collection name colHires
I sort the Gallery
SortByColumns(colHires,"HiredFrom",SortOrder.Ascending)
On the Gallery itself I have a toggle that keeps track if it is a StateDepartment job or not. A boolean.
I have a label that calculates the anniversary dates in the gallery but here is where im stuck. My calculations are complete wonky atm. label name = AnniversaryDate
I think that i need some more logic that can track my entire gallery and figure out if i have 1 or more bool values that are true.
I just cant figure out how to do this.
The only thing i have done is: AnniversaryDate label "Visible" property is set to
Toggle1.Value = true
This is where things get "funky". When i have more than 1 hire i can set the bool value on 1 or more to true and the label shoes me wrong dates.
Do i need a ForAll here and what would i have to do more to fi my wrong calculations?