cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
David8
Helper I
Helper I

Hamburger Menu URL Link

I created a hamburger menu and it works fine until I want to link to a URL. Is there a way to launch a URL from the menu? Nothing I have tried works so far. Here is where I'm at:

Table(
{
Title: "OnBoard Vendor",
MenuIcon: Home,
Screen: OnBoard
},
{
Title: "Profile",
MenuIcon: Home,
Screen: Launch("http://www.url.com") - How do I get this to work?
}
)

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@David8 

My suggestion is to structure your table like this.

Table(
  {
    Title: "OnBoard Vendor",
    MenuIcon: Home,
    Screen: "OnBoard"
  },
  {
    Title: "Profile",
    MenuIcon: Home,
    Screen: "URL",
  }
)

 

Then put this code in the OnSelect property of your gallery holding the table.

Switch(
    ThisItem.Screen,
    "Onboard", Navigate(Onboard),
    "URL",  Launch("http://www.url.com")
);

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
mdevaney
Super User III
Super User III

@David8 

My suggestion is to structure your table like this.

Table(
  {
    Title: "OnBoard Vendor",
    MenuIcon: Home,
    Screen: "OnBoard"
  },
  {
    Title: "Profile",
    MenuIcon: Home,
    Screen: "URL",
  }
)

 

Then put this code in the OnSelect property of your gallery holding the table.

Switch(
    ThisItem.Screen,
    "Onboard", Navigate(Onboard),
    "URL",  Launch("http://www.url.com")
);

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

nduati
Frequent Visitor

Hello mdevaney,

 

I am trying to implement your suggestion, since i have a similar requirements. All is well on the side of the Menu Component. But when i now try to use the Table Format in a collection on onStart property of the App, i get an error when i use Launch("www.someurl.com") on the Menu.. It works well with screens only. The error is thrown the moment i introduce Launch(). 

Here is my collection:

ClearCollect(
    colClassTeacherMenu,
    Table(
        {
            MenuLabel: "Home",
            MenuIcon: Icon.Home,
            MenuScreenNavigate: HomeScreen,
            MenuID: 1
        },
        {
            MenuLabel: "O-Level Results",
            MenuIcon: Icon.AddLibrary,
            MenuScreenNavigate: RecordOLevelScreen,
            MenuID: 2
        },
		{
            MenuLabel: "Reports",
            MenuIcon: Icon.Trending,
            MenuScreenNavigate:Launch("https://www.somereports.com"),
            MenuID: 3
        }
		)
	)

 

This is the error i am getting the moment i introduce launch. Kindly help

Capture1.PNG

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,130)