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

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?

  • 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

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