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 / Select function pointi...
Power Apps
Answered

Select function pointing to wrong parent gallery

(0) ShareShare
ReportReport
Posted on by 14

My app has 5 screens (Main, Edit Details, Search By Members, Search By Region, Item Details). 3 of the 5 screens (with respective galleries) are pointing to Item Details screen.

 

Issue: When selecting an item from 'Search By Members' screen, it is showing the data from Main screen. For example, if Main screen has 3 names (ABC, PQR, XYZ) and Search By Members also has same 3 names. When I click on PQR on 'Search By Members', it is showing ABC details in Item Details view.

 

How can I make the 'Search By Members' screen gallery to point to its own gallery. Please see attached for snapshots.

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @shazufaraz ,

    I cannot open your Word document, but from your description, it sounds like you have a galleries all with the same data source, but different Filters etc and one form to display whichever is selected. I will give you one approach that works (I do the same thing in a number of apps). Firstly I assume your data source is SharePoint (you did not specify this).

    At the OnSelect of each of the three galleries put this

    Set(vID,ThisItem.ID);
    Navigate(YourScreenName) //also whatever FormMode you are setting

    Then the Item of your Form

    Lookup(
     YourSPListName, //replace with your name
     ID=vID
    )

     This will select whichever record is selected from the relevant gallery.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • shazufaraz Profile Picture
    14 on at

    The Item of the form was the key here. I am now pointing to respective galleries based on last access view. And yes, my data source is SharePoint.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard