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 :
Power Platform Community / Forums / Power Apps / Pass selected data in ...
Power Apps
Unanswered

Pass selected data in table to Text box

(1) ShareShare
ReportReport
Posted on by 254

Hi,

 

I am very new to Power Apps, I have a Data Table with a list of PO's.  What I would like to do is if the user selects a line, and presses a button, it would take the PO number and put it in a text box on another.

 

Any ideas would be most grateful.

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at
    Re: Pass selected data in table to Text box

    Hey @Skybluekid 

     

    There is no on select property for data table. So we would take help of variables here.

    Take a button, and on select property of that button write a similar formula:

    Set(selectedItem, DataTable.Selected)

     

    Then take a text box and in that text box write the following formula:

    If(IsEmpty(selectedItem), "", selectedItem.Title)

     

    If nothing is selected the data table, it will show nothing and when you select a line in table it will show the title for it. You can replace it with PO Number.

     

    I hope this helps 🙂

  • Skybluekid Profile Picture
    254 on at
    Re: Pass selected data in table to Text box

    Thank you very much

  • Skybluekid Profile Picture
    254 on at
    Re: Pass selected data in table to Text box

    @Sundeep_Malik  I have 3 other fields in that Table(Date, Description and Value).  Am I able to extract this information from the selected value?

  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Pass selected data in table to Text box

    @Skybluekid 

     

    You will be able to do that. Just replace the .Title with other columns.

     

    with the on select on button, we are extracting every field for that item with: DataTable.Selected

     

  • Skybluekid Profile Picture
    254 on at
    Re: Pass selected data in table to Text box

    Thank you once again

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 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard