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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / One detail screen for ...
Power Apps
Unanswered

One detail screen for two different browse screens

(0) ShareShare
ReportReport
Posted on by 65

Hello. I have a app with two different browse screens, each one with its own gallery.

 

The app has only one detail screen to show differente gallery results. At Item of the DetailForm I wrote this code where varBrowse is set depending on the browse screen.

 

If(varBrowse = "BrowseGallery1"; BrowseGallery1.Selected; Gallery1.Selected)

 

Nonetheless, no matter which value in varBrowse is set, tha app only reads the firts IF option, in the case above, BrowseGallery1.Selected.

 

Thank you in advance!

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Hello,

     

    I'm going to ask maybe a weird question and have an ask.

     

    Questions(s)

    1. Is this the input of an Items property? Your details screen?

    2. How do you know its always only picking BrowseGallery1.Selected?

     

    Can you create a TextLabel and assign its text property to varBrowse and just verify what it is. The code looks fine, but I do NOT see the code that sets the value of varBrowse, so I am wondering if there is a bug there and you are accidentally always setting it to that.

     


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • BrosJr. Profile Picture
    65 on at

    FLMike, thank you. I just added an TextLabel for the varBrowse and it worked. 😉

  • BlueSky17 Profile Picture
    2 on at

    How do you do the "TextLabel for the varBrowse"? Can you teach me? Im currently face same issue like your issue. Thank you

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard