I'm building an app that has one-to-many sql relationships. The primary screen is a list of records. These records are populated by the db table Item Master(image provided at bottom of post).

When the right arrow is clicked the user navigates to the "view record" screen.

Note "620" is the itemID from the first screen. When I click the "Activity Log" button I come to the "Activity Log" Screen. These items are populated by the db Transaction table(Image provided at bottom of post).

Every item on the first screen has an activity log. The activity log should only show the log records of the selected item. Naturally this should be applied to the onselect attribute of the "Activity Log" button on the second screen.
How can I achieve this?
Here is a snapshot of the sql db.
