The exact way you can set this depend on your database structure. But in general - you need to use “Update record” action, and you need to have an available current record from which you get the end_time.
If you describe in more details what you’d like to achieve, me or someone else can give more meaningful advice - now it’s not enough info for this
When I UPDATE the current record in the list I cant set it to the Time End of the previous record. How do I make the TIMEEND of the previous record available, so I can use it to update the current record?
Thanks for the explanation. I can see 2 possible options here:
You can add the TimeStart at a point when you create new Stage. For instance, you have a screen with list of stages, on the most recent stage you have a button “Finish”, which will create a new stage (using the TimeEnd from the current one).
You can store TimeEnd in some “temporary proxy” variable, usually Users collection: e.g. Logged-inUser → TempTimeStorage.
When you finish the stage (button press), you update this variable with TimeEnd of the finished stage. And when you create a next one, you take the value from this variable.
That can work if you have to still create the stages, but if the Stages are already created, I can’t update the NEXT stage with current EndTime within the same list.
Hi, you can update the following record by making the “finish” button a list of stages and filter it to be the stage you want to update, this way the button will update the current stage as finished and update the one within it as started
Thanks Benali, how do I set the filter of the “FinishButtonList” to reference the next Stage dynamically?
It will need to reference a different stage each time.
As your stages have IDs, you can use a single-item list approach (as @Benalihoussam mentioned). What you need to add is “previous stage ID” and “next stage ID” properties to the database and put correct stage IDs there.
Then if you have a “Current stage” on some page, you can have 2 single item lists (made from buttons): one list is filtered by StageID is equal to Current Stage → PrevStageID, and another list is filtered by StageID is equal to Current Stage → NextStageID.
Hi Victor,
Goodness, managed to get this right with LOTS of trail and error, but the Adalo interface is seriously confusing with the hierarchy of lists within lists. See example below: