Hello thank you for taking the time to read this.
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:
Button is pressed again to change a value to no and edits a field so you get this result:
This works fine until the process is repeated
When a button is pressed a second time to change the value to yes it creates a new data thing
Button is pressed again a second time to change a value to no and it edits the wrong field so you get this result:
It edits the first field that was created and leaves the second one blank:
What does your database structure and workflows look like?
When I created this I didn’t have the yes / no field I thought I’d try get the thing to target the if its yes but doesn’t seem to work
How are your workflows currently set up?
I have two workflows which both have conditions
Date / Time Started
Date / Time Finished
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).
I think you should be able to view the page here I will look into what you said as it sounds about right for they typically stuff i usually miss out
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).
Thank you for your help I now believe it is working
This topic was automatically closed after 70 days. New replies are no longer allowed.