Update an Existing Row with Button

my app is tracking the time a certain machine is on and off. I have the start button on the details screen creating a log file in pump logs. I also need a way for it to be marked off when pushing a stop button. right now the only option I have is to make a new row in my log file with the timestamp and the status off. I would like the button to add stop time to the existing row. is that possible somehow? If I had that I could make the duration calculation. If it is not possible is there a way to calculate between 2 different rows?

1 Like