Hello!
On my home screen i am setting "HoursWeek", which calculates the hours at work already conducted this week. It is set at the on visible property of the home screen. It is also displayed on the home screen. However, I am using it a second time. I have a button that starts a flow and adds hours to the sharepoint list. Once the hours are added to the list, the HoursWeek variable should theoretically increase. What i thought of to achieve that: Use Set(HoursWeek;"formula") again. The problem: The push of the button increases the number of hours via flow, navigates to a new site, where the new number of hours should be displayed. I think the navigation is faster than the flow. So once navigated, the on visible property of the new screen set the variable again, but as the flow is not finished yet, it doesnt add the new hours to the numbers. So, the old value of the variable is displayed in the text box of the new screen. What can i do to have the refreshed and updated number displayed? Thanks a lot for your help!
Solved! Go to Solution.
Hi @anotherlama
When you say that the button naviagates to a new site, do you mean that it navigates to a new screen, or does it navigate to a different app?
If the user remains in the same app, one option would be to update your variable manually before calling your flow...
Set(HoursWeek; HoursWeek + HoursToAdd)
You could then move your orignal Set statement from the OnVisible property of your screen to the OnStart property of your app. That way, your Set statement won't reset HoursWeek to the old value during the navigation.
Another way to do this would be to call Set(HoursWeek;"formula") on a timer. By doing this, the variable would still show the old value following the navigation, but it'll show the new value as soon the Flow completes and the timer code runs.
Hi @anotherlama
When you say that the button naviagates to a new site, do you mean that it navigates to a new screen, or does it navigate to a different app?
If the user remains in the same app, one option would be to update your variable manually before calling your flow...
Set(HoursWeek; HoursWeek + HoursToAdd)
You could then move your orignal Set statement from the OnVisible property of your screen to the OnStart property of your app. That way, your Set statement won't reset HoursWeek to the old value during the navigation.
Another way to do this would be to call Set(HoursWeek;"formula") on a timer. By doing this, the variable would still show the old value following the navigation, but it'll show the new value as soon the Flow completes and the timer code runs.
User | Count |
---|---|
138 | |
132 | |
75 | |
74 | |
72 |
User | Count |
---|---|
206 | |
195 | |
70 | |
59 | |
52 |