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 / Navigation Problems wi...
Power Apps
Unanswered

Navigation Problems with BrowseGallery of "Top Items" from Sharepoint List

(0) ShareShare
ReportReport
Posted on by 34

Hello and Good Evening,

 

Long-term lurker for about a year, and about this time last year I began my current development. I have built a custom gallery app that is powered by a Sharepoint List as the item database. The main BrowseGallery works without a hitch- that is, clicking an item in the BrowseGallery list Selects the Parent, Sets the correct Item, adds +1 to the "totalclicks" to track my Top 10 Entries, and Navigates accordingly:

 

 

 

Set(currentRecord, LookUp(SHAREPOINT_DB, TOPIC = ThisItem.Title));
Patch(SHAREPOINT_DB, currentRecord, {TotalClicks: currentRecord.TotalClicks + 1});
Navigate(DetailScreen1, ScreenTransition.UnCover)

 

 

 And the gallery Items are populated via:

 

 

 

Filter((SortByColumns(Search(SHAREPOINT_DB, TextSearchBox1.Text, "ANSWER", "CATEGORY","TOPIC","HOWID","LINK"), "CATEGORY", If(SortDescending1, Descending, Ascending),"TOPIC", Ascending)),!IsBlank(TOPIC),CATEGORY in ComboBox2.SelectedItems)

 

 

However, when I am in the "Top 10 Entries" list, clicking any of the gallery Items brings me to the very first Item in my 'SHAREPOINT_DB' instead of selecting the correct entry. The Items in this "Top 10" list are populated via:

 

 

 

FirstN((SortByColumns(colNumberedSHAREPOINT_DB, "TotalClicks", Descending)),10)

 

 

However the OnSelect for each item in this "Top 10" BrowseGallery is the same code as above for the main BrowseGallery.

 

Any suggestions or solutions to why the navigation inside my "Top 10" list only navigates to the first entry in the list instead of setting the correct record and navigating accordingly?

 

Thank you in advance!

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @jchris207 

    Just a guess but I think the problem may be in your Set() function

    Try 

     

    Set(
     currentRecord, LookUp(
     SHAREPOINT_DB, ID = ThisItem.ID
     )
     )

     

     

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