Dual Portal Scroll Bar Issue
I have a layout for use with RAs/RMAs. This layout contains two portals. The top portal contains line items that are due for return to our warehouse, and the bottom portal is for line items that are received. Each line item in the top portal has a Mark As Receive button. When the button is pushed, the bottom portal is checked for those line items and, if the item is not detected in the bottom portal it is added, using the script attacted screenshot. The problem is that, once this script is done running, the focus should be back in the top portal. However, when a user clicks the top portal scroll bar, the scroll bar jumps up to the top record in the top portal, no matter what it's current position is, which kills workflow because the user has to scroll back down through the line items to find the next item to receive. Can anyone give me any insight to preventing the scroll bar from scooting back to the top of the portal once it is pressed, after receiving an item? "Reset Scroll Bar When Exiting Record" option is NOT checked for either portal. Any help would be greatly appreciated! Thank you!