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 / 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!

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard