
Announcements
I'm building a Power Apps application with a screen (TimeCardApprovals) that displays a list of time card entries for a manager's team. The entries are pulled from a data source (TimeEntries) and include fields like Title, WeekStart, EmployeeTxt (employee name), Status.Value (status of the entry), and Manager.Email. The goal is to filter and display entries based on the selected employee, time card title, and status.
NextArrow5) next to a time card in a gallery, it should set that item as the "selected" time card (selectedTimeCard) and navigate to another screen (TimeCardContinue).TimeCardContinue screen, I want to filter the TimeEntries data based on the properties of selectedTimeCard (like Title and EmployeeTxt) and the status passed through a variable (varStatus).TimeCardApprovals), I'd like to add additional dropdowns for filtering by status, employee, and possibly by date, to dynamically update the displayed data based on the user's selections.OnSelect for NextArrow5:
selectedTimeCard to the current item (ThisItem) in the gallery.TimeCardContinue, passing varStatus based on the currently selected tab.OnVisible for TimeCardContinue:
TimeEntries based on selectedTimeCard properties (Title and EmployeeTxt) and varStatus.selectedTimeEntries), which is bound to the gallery on the TimeCardContinue screen.EmployeeTxt):
selectedTimeCard.EmployeeTxt is not always recognized or accessible. It appears as if EmployeeTxt is sometimes not present in selectedTimeCard, causing filtering issues.TimeCardContinue screen loads, the selectedTimeEntries collection does not consistently reflect the correct, filtered data. Entries from other employees or statuses sometimes appear, indicating a filtering issue.selectedTimeEntries in real-time as users make new selections.Field Verification:
TimeEntries and ensured that EmployeeTxt and Title exist and match exactly. However, EmployeeTxt is still inconsistently accessible from selectedTimeCard.Debugging with Labels:
selectedTimeCard.Title and selectedTimeCard.EmployeeTxt, confirming that these fields sometimes don’t populate as expected.Workaround Attempts:
selectedTimeCard in various ways and wrapping fields in Text() to enforce type compatibility, but without consistent success.TimeCardContinue, only entries related to the selected employee (EmployeeTxt), time card title (Title), and status (varStatus) appear in selectedTimeEntries.TimeEntries dynamically on the main screen (TimeCardApprovals) using dropdowns for Status, Employee, and possibly date range, with results updating in real-time.I'm looking for advice on:
selectedTimeCard.EmployeeTxt for reliable filtering.Any insights or workarounds that could help resolve these filtering issues would be greatly appreciated!