Perform action on search result

Hi. I have a scenario where i am using a scanner to can a barcode which search for the corresponding record. what I would like to be able to do is perform an action (update the connected record for the “found” item)

so based on the image once the search returns an item i want a connection field in that item’s record to be updated without having the user perform any additional actions.

thank you