I am assuming you want the 2nd gallwry to have the same item selected and also scrolled to that item based on the item selected in the 1st gallery on the 1st screen. Is that correct?
If so, I would try a slight modification. On the OnSelecr of the button on Screen 1, use
Set(varSelected, Gallery1.Selected); Set(varDefault, First(Gallery1.AllItems)); Set(varDefault, varSelected); Reset(Gallery2)
Set the default of the 2nd gallery to varDefault.
Let me know if this doesn't work. If so, just for testing, add this button on the 2nd screen and see if that helps. If it does, then keep the 2nd button in place and add Select(Button2) on the OnVisible of the 2nd screen and simply use the 1st screen to navigate to the 2nd screen using
Navigate(Screen2)
If rhis also doesn't work, add a timer to the 2nd screen. Set its duration to 500. Set AutoStart to true. Set its OnTimerEnd to
Reset(Gallery2)
And the Button2's OnSelect to
Set(varSelected, Gallery1.Selected), Set(varDefault, First(Gallery1.AllItems)); Set(varDefault, varSelected); Navigate(Screen2)
Let me know if none of these work.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
https://thepoweraddict.com