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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / lookup header label.text
Power Apps
Unanswered

lookup header label.text

(0) ShareShare
ReportReport
Posted on by 6

Good Morning All,

 

I'm trying to do what should be , in my head, a simple look up.. value below shows the hard coded version. where it returns the value in column 

LookUp( BMW_RACI_Register, ProjNum = UniID, 'ColumnA' ) 

 

 

 what I would like is

ColumnA 

 

 

to read a value that sits in a text box.  e.g.

LookUp( BMW_RACI_Register, ProjNum = UniID, Label1.Text ) 

 

 

 

however the outcome of this doesn't return  the column header that = Label 1. Text.. it shows the value that is in the text box rather than the value in the field of the share point list were the column name = Label 1. Text.

 

hope this make sense and any help with this would be good. 

 

tom

Categories:
I have the same question (0)
  • PVosEska Profile Picture
    329 on at

    Hi @TD3 ,

     

    So you want to do a LookUp()  of where ProjNum is equal to Label1.Text, and return the ColumnA?

     

    Why not use: 

    LookUp( BMW_RACI_Register, ProjNum = Label1.Text, 'ColumnA' ) 

    Or if ProjNum is a value and not a string:

     

    LookUp( BMW_RACI_Register, ProjNum = Value(Label1.Text), 'ColumnA' ) 

     

    In your 3rd code, you basically say you want to return the value of Label1.Text, but this should be part of the LookUp() and not the result.

     

    I hope i understood correctly, if not, feel free to ask !

  • TD3 Profile Picture
    6 on at

    Hi,

     

    Thanks for the reply.

     

    sorry I wasn't very clear.. I don't want to hard code the column name. the column name would be in a label text.. effectively the column name would be a variable of sorts.

     

    Tom   

  • PVosEska Profile Picture
    329 on at

    Okay, i have to dissapoint you then... It is currently not possible to have Dynamic column names ( column names that would change depending on other values)

     

     

    Even using the Onchange preperty of the textbox to create a variable that is used as the return of the lookup, just produces the variable value, and not the sharepoint column value

  • TD3 Profile Picture
    6 on at

    Thanks, no worries.

     

    I have restructured my lists so they work better with one each other, allowing me to hard code the title

     

    thank you for the clarification.

  • Verified answer
    PVosEska Profile Picture
    329 on at

    Great! Please mark my answer as the solution, so it can be closed.

     

    Regards and good luck,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard