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 / Component Problem - 2 ...
Power Apps
Answered

Component Problem - 2 level NavMenu - Nested gallery

(0) ShareShare
ReportReport
Posted on by

Hi, 

i am trying two rebuild this solution:

 

https://www.youtube.com/watch?v=3S0h2nODcxM&t=1584s 

 

Unfortunately it worked in the component preview but never in the screens. I think i narrowed it down to the issue that the height and width had been set flexible based on the numer of rows in the nested table, which seem to return 0 and therefore do not show the submenu items at all. 

 

I rebuild a very small app in order to test that and experience the same problem. If I am trying to show the number of rows of the submenu in the subgallery - i cannot access it. Is it a bug or am i too stupid 🙂 ?

 

Screenshot 2023-05-03 082621.png

 

My Table looks like that:

 

Table(
 {
 MenuLabel: "Screen1",
 MenuIcon: Icon.Home,
 MenuScreenNavigate: App.ActiveScreen,
 MenuID: 1,
 Submenu: Table(
 {
 SubMenuLabel: "Submenu1",
 SubMenuIcon: Icon.QuestionMark,
 SubMenuScreenNavigate: App.ActiveScreen,
 SubMenuID: 1
 },
 {
 SubMenuLabel: "Submenu2",
 SubMenuIcon: Icon.QuestionMark,
 SubMenuScreenNavigate: App.ActiveScreen,
 SubMenuID: 1
 }
 )
 },
 {
 MenuLabel: "Screen3",
 MenuIcon: Icon.Check,
 MenuScreenNavigate: App.ActiveScreen,
 MenuID: 3,
 Submenu: Table()
 },
 {
 MenuLabel: "Screen10",
 MenuIcon: Icon.Check,
 MenuScreenNavigate: App.ActiveScreen,
 MenuID: 3,
 Submenu: Table()
 }
)

 

The Items of Gallery1 = Component1.MenuItems

The Items of Gallery2 = ThisItem.Submenu

 

Appreciate any help!

Screenshot 2023-05-03 082621.png
Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MB1987 ,

     

    Could you please share more details about your scenario? Why you need to count items of the sub-Gallery? Anyway, it's not possible to count parent data source within a Gallery. 

    vjefferni_0-1683179724613.png

     

    You can change SubMenuID values and set Text of Labels in sub-Gallery to be ThisItem.SubMenuID

    vjefferni_1-1683179816309.png

     

    Best regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard