Skip to main content

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.


Run Button
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.


Sign In With the Memebr Chelsea
Figure 2 - Sign in as the member Chelsea


4. Click the Notifications button.


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.


Cancel Button
Figure 4 - Cancel button


6. Type Mastering in the Search field.

7. Select the Mastering TypeScript 3 record in the list.


Select the Mastering TypeScript 3 Record
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.


Select Rick
Figure 6 - Select rick


10. Click the Save button in the form app bar.


Save the Book Record
Figure 7 - Save the Book record


11. Click the Avatar button.

12. Click the Logout button.


Logout With the Member Chelsea
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.


Sign In with the Member Rick
Figure 9 - Sign in as the member Rick


4. Click the Notifications button.


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.


Google maps link
Figure 11 - Google maps link


info
A new window opens for Rick with the location of the pickup address in Google maps.


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.


Cancel Button
Figure 13 - Cancel button


8. Click the Avatar button.

9. Click the Logout button


Logout With the Member Rick
Figure 14 - Logout as the member Rick


10. Click the Cancel button for the window and return to Five.