
Announcements
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 🙂 ?
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!
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.
You can change SubMenuID values and set Text of Labels in sub-Gallery to be ThisItem.SubMenuID
Best regards,