I am working on creating the "My Library Manager Part 4" section of the Power Apps course. I am able to successfully check-out a book and am having an issue where when I check-in a book it still shows as checked out. Here is a summary of what the issue that I am having.
When I click the 'check-in' button I get the notification saying "You have successfully checked the book in" and when I look at the Loans table I see the correct return date however my Power App is not refreshing so the book still shows up in the app and when I look at the Loans table the book has not been returned.
This is the fx that I am using for my check-in button
Patch(
Loans,
ThisItem,
{'Date Returned': Now()}
);
Patch(
BookCopies,
{
BookCopies: ThisItem.'Book Copy'.BookCopies,
CheckOutStatus: CheckOutStatus.Available
}
);
Notify("You have successfully checked the book in",NotificationType.Success);
Refresh(Loans)