Hi All
I have a component that acts as a header for 4 screens. (let's call them A,B,C,D)
In the dropdown 'OnChange' property, I have the below inside
Navigate(
LookUp(
colScreens,
displayName = ViewChanger.Selected.Value,
screen
),ScreenTransition.Fade
);
This basically does a lookup against a collection in which just maps out whatever text appears on the dropdown to the screen name on the app startup. Seems to work ok.
What I do notice is that when users select from the drop down - it goes to the correct screen, but the dropdown will 'reset' back to the original. i.e. I go from screen A->D, but the dropdown goes back to a default in which A shows up, in which D really should be set on the dropdown value, since they're now in screen D. This seems to confuse the 'OnChange' property of the component at times.
How do I interact with the actual dropdown value in the component based on the screen itself? Do I need a component property to do this? Is there a better implementation that I should consider?