So, Riddle me this....
I have a Horizontal Gallery that contains a single button - I use this as a "Tab navigator".
The Gallery.Items is set to a custom Collection: "col_menu", which is defined in the App.OnStart as follows:
Set(col_menu,Table(
{Title:"Tab 1", Screen: Screen_1},
{Title:"Tab 2", Screen: Screen_2},
{Title:"Tab 3", Screen: Screen_3},
{Title:"Tab 4", Screen: Screen_4},
));
The button in the gallery then just has a simple OnSelect action:
Navigate(ThisItem.Screen)
Fairly simple, yes? And it's been working fine for over 2 years (I've used this technique all over the place and it's always been OK)
I just came to edit an app and add a new screen to the mix, so I added a new entry to the col_menu collection:
{Title:"Tab 5",Screen:Screen_5}
Unfortunately, PowerApps just doesn't want to play ball, and keeps navigating to the WRONG screen for this new entry - and this happens in BOTH the Studio, and when playing the published app in a browser (Chrome).
Click on "Tab 1" - Navigates to Screen_1 - OK
Click on "Tab 2" - Navigates to Screen_2 - OK
Click on "Tab 3" - Navigates to Screen_3 - OK
Click on "Tab 4" - Navigates to Screen_4 - OK
Click on "Tab 5" - Navigates to Screen_1. - even though the collection clearly states "Screen_5"
I am so confused - how on earth can this work for 4 elements of the gallery, but not the 5th?
Has anyone else seen any funny behaviour of the Navigate() function?
James.