My app has a duration field called “FirstBreakDuration” with appsheet data type DURATION for when someone takes a break we can record the duration taken.
When the user enters into the form the duration as 00:30 and then saves, the value is changed to 0 00:30:00.000000. Once this happens any equations that I have using the TOTALHOURS() function do not work after the save.
I am using mysql as the app data source and the field is set to VARCHAR(20) for the mysql datatype. Has anyone experience this before?
Not sure about that, but I have a suggestion of a different way to build this part of your app. Give a Number type input field for “Duration of first break (in minutes)”. Then use an expression to convert that into the Duration in another column. This makes it an easier value for a user to input, and then gives you validation control so that the duration value is generated correctly.
Hi @Marc_Dillon, updated the solution as @LeventK has shown that MySQL can use TIME as the right data type for DURATION in AppSheet. Formatting comes through correctly now. Thanks for your solution though.