Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

List Menu

(1) ShareShare
ReportReport
Posted on by 438

I have a concern about the list menu in PowerApps. It seems that PowerApps cannot create a role-based list menu, where each role like staff and student would display differently within the same menu. Creating two separate list menus would be too much work for me. Currently, I've labeled each name on the list to navigate to the respective screen.

Screen recording: https://drive.google.com/file/d/1EgLR-1LA-jbiEMx6ndV0aZk6EvhhTjvv/view?usp=sharing

 

Staff Role                            Student Role

Screenshot 2024-07-16 at 5.19.16 PM.pngScreenshot 2024-07-16 at 5.18.58 PM.png

  • dylandavis09 Profile Picture
    dylandavis09 438 on at
    List Menu
    Thank you Sam and Ryan for your sending this!!!! It's worked. 
  • List Menu
    Hey,
    I think we need to know where you're getting the menu list from. Is it from a SharePoint list or is it hard-coded? I had a similar requirement, and I created a SharePoint list for the menu with roles. Based on the logged-in user's role, I was able to show or hide items accordingly.
     
    Cheers,
    Sam
  • Ryan_B Profile Picture
    Ryan_B 446 on at
    List Menu
    SoPatt has the right of it to make it simple.
     
    Use the menu in your "StaffTabList" screen and define what to display based on the role. Judging by your video, it looks like you have the sections grouped in some fashion, in which case you will go to the "DHS Administration" group and set its visible property to:
     
    If(
        LookUp('DHS All Users''Full Name' = User().FullName).Role.Value = "Staff",
        true,
        false
    )
     
    This will only display that group of controls to users who are assigned the "Staff" role.
  • dylandavis09 Profile Picture
    dylandavis09 438 on at
    List Menu

    I just figured out and solved the issue where I had two different tab menus in two different variables. I am trying to get everything together in one tab menu. I would like to have everything in one place, with the tab menu based on the role: Students will see one list, and Staff will see another list.

    If(

    LookUp(
    'DHS All Users',
    'Full Name' = User().FullName
    ).Role.Value = "Student",
    UpdateContext({varStudentTabListMenu: !varStudentTabListMenu}),
    If(
    LookUp(
    'DHS All Users',
    'Full Name' = User().FullName
    ).Role.Value = "Staff",
    UpdateContext({varStaffTabListMenu: !varStaffTabListMenu})
    )
    )

     
  • SoPatt Profile Picture
    SoPatt on at
    List Menu
    I don't fully understand your issue. However, assuming you have a variable called Role that holds the text "Student" or "Staff", you could show or hide controls using the Visible property, e.g. Role="Student", Role="Staff".
     
    Perhaps it would help to describe your issue in more detail.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard