Hello people,
How can i have one of the menuitems launch an external URL link, rather than the normal App.ActiveScreen in my menu component. The below approach throws an error not unless i stick to App.Activescreen
Table(
{
MenuLabel: "Home",
MenuIcon: Icon.Home,
MenuScreenNavigate: App.ActiveScreen,
MenuID: 1
},
{
MenuLabel: "Document",
MenuIcon: Icon.Document,
MenuScreenNavigate: App.ActiveScreen,
MenuID: 2
}, {
MenuLabel: "Reports",
MenuIcon: Icon.Trending,
MenuScreenNavigate: Launch("www.someurl.com"),
MenuID: 3
}
)
My OnSelect property on the Click button and MenuIcons is set to Navigate(ThisItem.MenuScreenNavigate, ScreenTransition.Cover) which only works for App.ActiveScreen. Kindly help
Solved! Go to Solution.
You are mismatching datatypes.
Your MenuScreenNavigate is implied to be an App screen object. Then later you try to set it to a Launch object (which is no datatype).
Either add a new column to your table records called something like LaunchTo: and set it to the url you want, or reconsider what you are doing with MenuScreenNavigate as you seem to have them just going to the active screen.
I hope this is helpful for you.
You are mismatching datatypes.
Your MenuScreenNavigate is implied to be an App screen object. Then later you try to set it to a Launch object (which is no datatype).
Either add a new column to your table records called something like LaunchTo: and set it to the url you want, or reconsider what you are doing with MenuScreenNavigate as you seem to have them just going to the active screen.
I hope this is helpful for you.
Hello,
I am attempting the same setup I have a component navigation menu where some items will be links to direct pages within the app. Then the remaining items in the table will go to external links. My table setup for items in my component is:
Table(
{Value: "Item 1", Image: image, Screen: App.ActiveScreen, LaunchLink: ""} - this will go to page within the app
{Value: "Item 1", Image: image, Screen: "", LaunchLink: Launch('www.google.com")}
Then in my OnStart I have:
Set(colNavMenu,
{Value: "Item 1", Image: image, Screen: 'Home", LaunchLink: ""}
{Value: "Item 1", Image: image, Screen: "", LaunchLink: " Launch('www.google.com")}
Thanks
What issue are you having? You might want to start a new post on the issue you are having as this is an old and closed post.
You can @ mention me in the post if you want me to take a look.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
196 | |
69 | |
49 | |
45 | |
18 |
User | Count |
---|---|
249 | |
126 | |
84 | |
75 | |
74 |