Greetings,
To avoid delegation issues, I have decided to use ClearCollect to bring in a filtered set of Data from a Sharepoint List:
//Set variable for current date
Set(
CurrentDate,
Date(
Year(Today()),
Month(Today()),
Day(Today())
)
);
//Set variable for start of previous work week
Set(
PeriodStartDate,
DateAdd(Now()-6,-(Weekday(Now(),StartOfWeek.Sunday)),Days)
);
//Set variable for send of current work week
Set(
PeriodEndDate,
DateAdd(Now(),-(Weekday(Now(),StartOfWeek.Sunday)),Days)+7
);
//Pull in collection
ClearCollect(colEntries,
ShowColumns(
SortByColumns(
Filter('Entries','Entry Date and Time' >= PeriodStartDate,'Entry Date and Time'<= PeriodEndDate),
"Entry_x0020_Date_x0020_and_x0020",Descending
),
"Employee_x0020_Name","Entry_x0020_Date_x0020_and_x0020","In_x0020_or_x0020_Out","Location","Comments","Branch","OutType","ReturnDate","Building","ID"
)
);
I have created a screen with a gallery which has a data source of colEntries. My EditForm has a datasource of 'Entries'. When the Form is submitted, it creates the new record in the Sharepoint List and then the ClearCollect runs again to update the collection. The problem is my DetailForm. How can I get the nextArrow in my Gallery for each record to open the Detail Form for the record in the Sharepoint List? I have the ID field in the Sharepoint List, as well in the collection.
Currently, the NextArrow in the gallery is set to Select(Parent). I was thinking about doing something like Select(LookUp('Entries',ID=ThisItem.ID)), but it doesnt work. Basically, I want it to look at the ID listed in the collection, then match it with the record in the Sharepoint List, and select that record for the DetailScreen. Any help would be greatly appreciated.