web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : yo26qFd7tHovKuw1OtykMQ
Power Apps - Building Power Apps
Answered

How to get the name of active screen

Like (2) ShareShare
ReportReport
Posted on 6 Mar 2019 10:49:58 by 30

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

Categories:
I have the same question (0)
  • ITCareNV Profile Picture
    574 on 06 Mar 2019 at 12:23:45
    Re: How to get the name of active screen

    Hi @winwell

     

    I don't know of any pre built function that would do that but you could try this out: https://powerusers.microsoft.com/t5/General-Discussion/Navigate-to-a-screen-by-it-s-name/m-p/2454#M1352

     

    Let me know if that helped you or not.

  • winwell Profile Picture
    30 on 06 Mar 2019 at 12:58:40
    Re: How to get the name of active screen
    Thanks but that doesn't really do what I wanted and after reading that post, looks like the functionality doesn't exist anyway. I'll just have to enter the screen name manually. Thanks anyway.
  • Verified answer
    ITCareNV Profile Picture
    574 on 06 Mar 2019 at 13:14:01
    Re: How to get the name of active screen

    You can always submit the idea here: https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas/status-key/Started

     

    I would vote for it Smiley Very Happy

    Alternatively, in addition to your case, this might help you: https://powerusers.microsoft.com/t5/PowerApps-Ideas/Navigate-to-a-screen-by-name/idi-p/3680

     

    Good luck!

  • v-yuxima-msft Profile Picture
    on 07 Mar 2019 at 08:40:06
    Re: How to get the name of active screen

    Hi @winwell ,

     

    What do you mean get the active way of the screen?

    Do you mean you have many screens and the label shows the screen which is used?

    I am afraid there is no the relate function to show the active screen in PowerApps currently, if

    you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Best Regards.

    Yumia

  • v-yuxima-msft Profile Picture
    on 20 Mar 2019 at 12:39:29
    Re: How to get the name of active screen

    Hi @winwell @dimi ,

     

    Thanks for your posts and votes.

     

    Best Regards.

    Yumia

  • Emjee Profile Picture
    65 on 20 Apr 2019 at 03:47:28
    Re: How to get the name of active screen

    App.ActiveScreen.Name

    Reference

     

    This is great for building navigation components:

    1. App Settings > Advanced Settings > Experimental Features > Components > On

    2. In the Tree view, select the Components tab.

    3. Press New component and rename it. Try this naming style: cmpTitleBar

    4. Change your component size. Try a height of 40 or 50.

    5. Press New custom property and name it. Try this for Name: inpTitleBar

    6. With Property type: Input and Data typeText, complete the dialog by pressing Save.

    7. Now that your component is listening for that input, Insert a Label.

    8. Connect by changing the label's Text property from "Text" to cmpTitleBar.inpTitleBar.

    9. Lastly, change the component's input (inpTitleBar) to App.ActiveScreen.Name as a default value.

    10. Name a screen and Insert Component to see the result.

    What else can you add to your navigation component?

  • Rafyelzz Profile Picture
    3 on 22 Feb 2020 at 19:38:06
    Re: How to get the name of active screen

    THIS is the solution

  • AndreSchlender Profile Picture
    34 on 31 May 2020 at 07:51:40
    Re: How to get the name of active screen

    The example with using a "Component" is nice and useful in many ways.   Before components I have simply set a variable (varScreenTitle) and had a label in the header referencing the variable.  In the App OnLoad event I set the variable to for my start up screen.  In most cases the user will have to click a button or perform an action to navigate to a different screen. At this points you then reset the variable to a different name that matches the new screen prior to calling Navigate().  Simple but worked for me.

  • Bakertc384 Profile Picture
    16 on 30 Sep 2022 at 10:58:19
    Re: How to get the name of active screen

    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 ? 

  • cmanning Profile Picture
    228 on 23 Dec 2022 at 16:46:45
    Re: How to get the name of active screen

    @Bakertc384 - I am also interested if there has been a solution or work-around for this. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 752 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 472

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 358 Super User 2025 Season 2

Last 30 days Overall leaderboard