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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Header Component Text ...
Power Apps
Answered

Header Component Text Label

(0) ShareShare
ReportReport
Posted on by 169

Following a video from Brian Dang, I am trying to get the Text label in a Component Header to automatically populate on each new screen in my app.

In the App itself under OnStart, I have the following:
ClearCollect(colScreen,{id: 1, displayName: "New Request",screen: scrNewRequest},{id: 2, displayName: "View & Edit",screen:scrViewScreen}), where the screen name is the name of the screen in the app.

When I add the header and use the HeaderText field (created in a separate component app where I made the header),, I am using this formula: LookUp(colScreen,screen=App.ActiveScreen,displayName)

Once the formula is entered, is shows the result as Blank.

Am I missing something?  I see no errors in either formulas.

Categories:
I have the same question (0)
  • Verified answer
    cdwhite Profile Picture
    1,069 Most Valuable Professional on at

    Hi @billf24 ,

    I've replicated at my end and it seems to work fine. 

    Firstly, make sure in your collection that the screen names are properly registered. You'll know this is the case as they'll be formatted like so:

    cdwhite_0-1692044776317.png

    The following Lookup then works fine for me on each screen, which I think is slightly different to how you have your lookup:

    cdwhite_1-1692044824501.png


    As an aside, where possible try to name your screens differently, ie 'View Screen' or 'Edit Screen'. Text like 'scrViewScreen' doesn't play nicely with screen reader technologies and we should always be aiming to make our apps as accessible as possible. Check out Matt Devaney's blog on the subject.



  • billf24 Profile Picture
    169 on at

    Thank you.  Looks like my issue was it was working, I just need to click out of that screen then back..

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard