1.2 - Test the Do Before Update Event
Last updated 13/06/2023
With the SaveBookBeforeUpdate function attached to the Do Before Update event on the Book table, we can now test that Rick receives a notification when Chelsea selects him in the Borrowed By field.The same members Chelsea and Rick will be used to demonstarte how the Do Before Update event works for both members.
As this demonstration is being performed locally, we'll need to perform the following workflow to see how the Book Club application is currently working:
- Log in as Chelsea to accept the book request.
- Log in as Rick to see the notification and the location of the book pick up.
Run the Book Club Application
1. Click the Run button in the form app bar.Figure 1 - Run button
Log In With the Member Chelsea
1. Type chelsea in the Username field.2. Type Demo123! in the Password field.
3. Click the Sign In button.
Figure 2 - Sign in as the member Chelsea
4. Click the Notifications button.
Figure 3 - Notifications button
info
Chelsea still has Rick's request notification as we did not delete it before.
5. Click the Cancel button.
Figure 4 - Cancel button
6. Type Mastering in the Search field.
7. Select the Mastering TypeScript 3 record in the list.
Figure 5 - Select the Mastering TypeScript 3 record
8. Either click the Edit button in the form app bar, or click directly in the Borrowed By field.
9. Click the lookup in the Borrowed By field and select rick.
Figure 6 - Select rick
10. Click the Save button in the form app bar.
Figure 7 - Save the Book record
11. Click the Avatar button.
12. Click the Logout button.
Figure 8 - Logout as the member Chelsea
Log In With the Member Rick
1. Type rick in the Username field.2. Type Demo123! in the Password field.
3. Click the Sign In button.
Figure 9 - Sign in as the member Rick
4. Click the Notifications button.
Figure 10 - Notifications button
info
Rick now has a notification and a link is provided for him with the location of the book pickup.
5. Click the link in the notification.
Figure 11 - Google maps link
info
A new window opens for Rick with the location of the pickup address in Google maps.
Figure 12 - Google maps
6. Click the Cancel button for the window and return to the Book Club application.
7. Click the Cancel button in the notification.
Figure 13 - Cancel button
8. Click the Avatar button.
9. Click the Logout button
Figure 14 - Logout as the member Rick
10. Click the Cancel button for the window and return to Five.