I have a Gallery (Child) that contains a variable number of records linked to a Parent form. The Gallery has a tripdate field where I want to set the first record's date to tomorrow and then increment subsequent records by 1 day - the Gallery is displaying dates from a field trip the user is recording. There are a few other fields in the Gallery; destination, activity, localcontact etc
The Gallery's items property is: Filter(TripDetails,tripid=Value(Gallery2.Selected.tripid.Text)) as it is getting the ID from another screen and another Gallery. I have found a post which explained how to use the Sequence function to increment the dates and if I put this on theGallery's items property: ForAll(Sequence(15), {date: DateAdd(Today(), Value, Days)}) and then this on the TextInput for the tripdate: Text(ThisItem.date, ShortDate, "en-GB") it works and the dates are displayed correctly but of course I lose the Filter and the subsequent data. What I need to do is combine the Filter statement with the ForAll so I get all the fields in the Gallery plus the incrementing dates.
I hope I have explained that well enough....
Can anyone please assist?