entering timestamp in portal with button
The purpose of this portal is for techs to check in and out on a job. I dont want them editing the times manually so I have a check in button and check out button that does a timestamp in the corresponding field(time in/time out). The problame Im having is getting the buttons to automatically go to the next row without clicking or touching the next row before pushing the button. Ive attached a screenshot of my simple script. It doesnt want to go to the last row of the portal. If they go out of the work order, then go back in, and click check in, it overwrites the first portal row with new data. Any ideas?