>> Could you show me more details about this situation?
Inactive
Active
DetailCard
(this changes from the current record to the data from record number one, after I choose "Accept")
I have a BrowserGallery and a DetailScreen and have removed (deleted) the edit screen and hidden the edit icon on the edit screen because I did not want the records edited by the users, except for the date field. The date is the only user modifiable interface.
The user can modify the date but can only accept the date after first turning the toggle button on, which enables the "Accept" button. If the toggle button is turned off, the "Accept" button is disabled.
The purpose is to ensure the user must actively consent and "Accept" the date. This keeps me from having to put up a dialog, asking "Are you sure you want to accept this date?" It wasn’t accidentally accepted.
Once the user clicks "Accept" using the "OnSelect" property, I patch the record on SharePoint. I see the progress dots go across the screen for a few seconds, the screen flashes momentarily with the same user record.
A few seconds later, ( From the appearance, after the patch has completed) the screen begins to update but instead of showing the same record, the details for record number one show up.
Interestingly, the correct record is updated but it is confusing to see the details for record one appear after updating another.
Patch(ActiveUsers,First(Filter(ActiveUsers,DistinguishedName=BrowseGallery1.Selected.DistinguishedName)), { MoveDate: MoveDate.SelectedDate + Time(Value(HourDropdown.Selected.Value), Value(MinuteDropdown.Selected.Value), 0)})
My Patch statement appears to be identical (in form) to yours. I initially had the filter condition as BrowseGallery1.Selected.DistinguishedName=DistinguishedName but just in case (I didn’t see how it would make a difference) I swapped the order to DistinguishedName=BrowseGallery1.Selected.DistinguishedName
Thank you,
W.