I want to show the active screen name in a label.
Is there a way to get the name of the active screen? I can't see any obvious 'non manual' way to do it.
Thanks
Inspired by the collective genius here, I’ve cooked up a simple hack. It’s like when you make a screen template your secret ingredient and replicate it more than a favorite recipe. Just add a pinch of variable to the OnVisible property, linking it to the screen’s name, and voilà !
Imagine your template is “TemplateScreen.” The formula in OnVisible is: "Set(varScreenName, TemplateScreen.Name)"
Every copy will keep calling back to name of the screen it is in, even if you decide to rename it to “Display-o-Matic 3000.” Might need a quick refresh to see the trick in action, though.
If you just want to show the name in a label, then this would work: create a textlabel on your screen and have the textfield be "Parent.Name".
Would also want to know this, I tried creating a parameter with the screenname but it doesn't seem to work with the Navigate function.
This is within the components part of power apps
hey,
i did follow this tutorial to the letter and still it did not recognise the app.activescreen function what so ever.
the attachments does not show the red line under "app.activescreen.name" but it is there
I'm not certain I completely understand your problem. By "wanted the select page to highlight a colour dependant on the screen they are on", do you mean a highlight like in the image below? If so, this image is from a tutorial you could follow to create this effect (Thank you @mdevaney !). The tutorial can be found here.
Source: https://www.matthewdevaney.com/power-apps-navigation-menu-component/
My issue was not app.activescreen.name whilst within the app side,
i had issue when creating a customer component (menu system) and wanted the select page to highlight a colour dependant on the screen they are on.
i could not pull through app.activescreen into the customer component.
i had a rectangle that was visible if the active screen name matched the label next to it, all labels matched and should have worked, but it did not recognise the app.active screen function at all.
only in the app side of it
What exactly is the problem you, @cmanning, and @Bakertc384 are experiencing? I can create a label with App.ActiveScreen.Name as the text. And when I change the 'Visible'-property of the label to "App.ActiveScreen.Name = Label9.Text" it is visible. When I change it to App.ActiveScreen.Name <> Label9.Text it becomes invisible. To me this proves that App.ActiveScreen.Name still works, both as a source for a text label and as a means to filter visibility.
@Bakertc384 - I am also interested if there has been a solution or work-around for this.
I have an issues with app.activescreen,
i have a custom menu component where a component is visible based on what screen they are one. the customer component is side hamburger menu and is the same on every screen.
there is a collection that hold all the menu data,
Table(
{
MenuLabel: "Home",
MenuIcon: Icon.Home,
MenuID:1,
ScreenNav: 'Home Page'
when i enter say.... ThisItem.ScreenNav = app.activescreen.name in the visible property of the component
it show red line under. seems like app.active screen is no longer working,
any ideas ?
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,083
Most Valuable Professional