Rob,
The good thing is ... no error messages (as opposed to all previous ChatGTP efforts 🙄)
The bad thing is, ... it is not (yet) working. Therefor, I must be overlooking something.
Allow me to recapitulate what I've done so far (for a limited number of screens. I assume if the first ones are actually working, that I can complete all others the same way ?)
Everywhere where there is a button to navigate to the next screen, I've embedded your suggestion. That would look like this :
ServTimeRegistrFlow.Run(
User().FullName,"Start TravelFROMHome","",Location.Longitude,Location.Latitude,Now(),DailyID,"",
"CustomerDropdown.Selected.Value",
"SC_HomeStopTravelCust"
);
ClearCollect(LastPage, "SC_HomeIdentifyCustomer");
IfError(SaveData(LastPage, "PageReturn"),false);
Navigate(SC_HomeStopTravelCust,ScreenTransition.CoverRight)
(sorry for the layout. Haven't figured out yet how you squeeze those rectangles).
The first part of the formula is referring to an automated flow in order to push some data into a Sharepoint list.
The other pages/screens have a similar formula in the "OnSelect" property.
In the OnVisible of the main landing page ...
IfError(LoadData(LastPage, "pageReturn", true), false)
On the same landing page place, a button was created with a visible property
!IsEmpty(LastPage)
Text property to that button :
"Tap this button if you need to go back to your last active page"
This however shouldn't have any impact on 'operational' side of the process
And finally - still the same button - in the OnSelect property :
Switch(
First(LastPage).Value,
"SC_HomePurposeTravel", Navigate(SC_HomePurposeTravel),
"SC_HomeIdentifyCustomer", Navigate(SC_HomeIdentifyCustomer),
"SC_HomeStopTravelCust", Navigate(SC_HomeStopTravelCust)
)
If you still feel up for it, would be grateful if you could point out where I'm missing out on something ...
Much obliged.
(probably will be out for the remainder of the evening - close to 18h now)