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 / Selecting a record in ...
Power Apps
Answered

Selecting a record in Gallery takes you to the wrong record in a related form

(0) ShareShare
ReportReport
Posted on by 202

Hi. Does anybody know how to solve the issue with wrong record selected from the browse gallery. So, I have all records listed under ITEMS in BrowseScreen

 

Sort(
Filter('XXX (Sharepoint list)',
If(IsBlank(StatusTextFilter.Selected.Result),true,StatusTextFilter.Selected.Result in StatusText ),
If(IsBlank(CountryFilter.Selected.Result),true,CountryFilter.Selected.Result in 'Country'),
If(IsBlank(TripTypeFilter.Selected.Value),true,TripTypeFilter.Selected.Value in 'Trip Type'.Value),
If(IsBlank(RequestorFilter.Selected.Result),true,RequestorFilter.Selected.Result in 'Created By'.DisplayName),
If(IsBlank(SelectedUser),true,SelectedUser in 'Created By'.DisplayName),
If(IsBlank(IDFilter.Text),true,IDFilter.Text in ID)),
ID,
Descending)

 

ONSELECT i have

Set(GalleryItem,BrowseGalleryAll.Selected);
Navigate(DetailScreen1,ScreenTransition.None);

 

But, when i select a record from the Browse Screen, it selects totally different record in details screen. What am i missing? I would appreciate any help.

 

 

Categories:
I have the same question (0)
  • Verified answer
    Ramole Profile Picture
    Super User 2024 Season 1 on at

    @batmanMon 
    You need like this on Gallery OnSelect

    Set(GalleryItem,ThisItem); Navigate(DetailScreen1, ScreenTransition.None)

     

  • batmanMon Profile Picture
    202 on at

    Hi @Ramole ! Thank you for your comment. I have tried the code and unfortunately it didnt work for me 😞  Any other ideas 😞

  • batmanMon Profile Picture
    202 on at

    I just realized why the app doesnt let me to select a correct record. So, i have 4 galleries on one browseScreen. But only one detailsScreen. Do i need to have a separate detailsScreen and EditScreen for each gallery?

    wrong item selected QUESTION.png
  • BideyYusuf Profile Picture
    387 on at

    @batmanMon Not necessarily, if the galleries are connected to the same Datasource.

  • batmanMon Profile Picture
    202 on at

    @BideyYusuf  yes, they are

  • Verified answer
    BideyYusuf Profile Picture
    387 on at

    Hi @batmanMon , if thats the case.... then what @Ramole said will work.

    Set(GalleryItem,ThisItem); Navigate(DetailScreen1, ScreenTransition.None)

    after you put this on the Onselect Propety of the gallery,

    then put GalleryItem on the Item property of the DetailForm. and EditForm

     

    Hope this helps.

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    @batmanMon 

    As @BideyYusuf  said put GalleryItem on the Item property of the forms and should work 

  • batmanMon Profile Picture
    202 on at

    @Ramole @BideyYusuf  it worked. Thank you sooo much!!!!😸😸

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 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard