I am currently stuck on creating multiple data entry’s by the same person. I am trying to do it so that on first press of a button it creates a new data thing and saves the current time and date. Then on second press it edits that same data type but different field to save the time and date again. When there is only one data field per person this works fine but when the button is pressed again to create another new data thing and you press it a second time it doesn’t work. Example’s of what is happening:
When a button is pressed to change the value to yes it creates a new data thing:
There’s not enough info here to make an accurate diagnosis, but my guess is that the parent group that contains the ‘Shift Timer’ you’re trying to edit has it’s data source set up wrong or you’re not updating it after the first entry is created.
That would explain why your workflow is editing the wrong data entry (if that’s what you meant).
Yeah, at the moment your workflow is set to make changes to the ‘Shift Timer’ associated with the ‘Group Shift Timer’ group.
Currently that group’s data source is just the first ‘Shift Timer’ in your database, so there’s the issue.
At the moment any time you run that workflow you’ll be making changes to the same Shift Timer (the first one in your database) no matter how many Shift Timer entries you have.
So you’ll need to change the default data source of that group (presumably to load the current user’s most recent, or active ‘Shift Timer’).
Then you’ll also need to update the data for that group whenever you create a new Shift Timer. So add a step in the workflow to ‘display data’ in the group, and the data to display is the ‘results of step 1’ (where the Shift Timer was created).