web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / drop down inside a com...
Power Apps
Unanswered

drop down inside a component - how to set value of drop down back to what was selected based on screen

(0) ShareShare
ReportReport
Posted on by 99

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?

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at
    Navigate(
     LookUp(
     colScreens,
     displayName = ViewChanger.Selected.Value
     ).displayName,ScreenTransition.Fade
    );

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

  • IncursioML1 Profile Picture
    99 on at

    That seems to error out when I use that particular syntax.  

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at
    Navigate(
     ViewChanger.Selected.Value
     displayName,ScreenTransition.Fade
    );

    And try to insert the name of the screens there

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

  • IncursioML1 Profile Picture
    99 on at

    Doesn't seem to work here based on what you are suggesting

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Why dont you have buttons so user can choose where to navigate?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard