This post is related to a previous post that I made on on 1-16-18. The new post was made after extensive testing and will bring more clarity to issue than the original post:
The App runs with no problems on my Desktop but on my Mobile Device (IPhone 7) the Global Variable does not update to the Selected Account fast enough.
Problem: On the Mobile Device when selecting the Set and Navigate control for an account from the AccountControl screen - it navigates and populates the data in the AccountLog screen prior to Global Variable being posted. Therefore, it displays the data from the previous selected account. If I naviagate back to the AccountControl screen and select another account it displays the previous selected account again which means the Global Variable is getting updated at some point after the AccountLog screen is loaded.
What's involved in this Scenario - 2 Screens and Code - Uses SharePoint Lists as Datasources:
AccountControl screen - OnSelect:
AccountLog screen - Gallery3 - Items:
SortByColumns(Filter(AcctLog,AcctID = Text(CurrentAcctID)),"DateEntered",Ascending)
I have done numerous test including a Collection with the exact same results.
I would appreciate any insight, solution, or workarounds on this matter.
Thanks - Marc
Anyone got any thoughts on how to work around this problem until it is fixed? If it is fixed?
Thank you for providing steps for replication. That helped a lot and gave me a good sense of how and why you were encountering this issue. @KroonOfficeSol, I appreciate that you stepped up and offered help.
I was able to replicate the issue on iOS and I have two comments:
Let me know if that helps.
He Mr Dang,
This is indead a nice improvement and a better way to fill the Global variable, nice. But wouldn't still the Gallery be filtered on screen entry or is this update preformed before the screen to become visible? How does PowerApps handles this in the background?
Many thanks. Using the ThisItem reference works. Clearly the Gallery.Selected value is updated after the action to Set the global variable is completed.
Only question is why this behaviour is inconsistent between iOS and pc browser.
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021
Check out the Power Platform Community Highlights