Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 199

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.

 

 

  • batmanMon Profile Picture
    199 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

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

  • Ramole Profile Picture
    Super User 2024 Season 1 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

    @batmanMon 

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

  • Verified answer
    BideyYusuf Profile Picture
    387 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

    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.

  • batmanMon Profile Picture
    199 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

    @BideyYusuf  yes, they are

  • BideyYusuf Profile Picture
    387 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

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

  • batmanMon Profile Picture
    199 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

    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?

  • batmanMon Profile Picture
    199 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

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

  • Verified answer
    Ramole Profile Picture
    Super User 2024 Season 1 on at
    Re: Selecting a record in Gallery takes you to the wrong record in a related form

    @batmanMon 
    You need like this on Gallery OnSelect

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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard