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 / Pass selected data in ...
Power Apps
Answered

Pass selected data in table to Text box

(1) ShareShare
ReportReport
Posted on by 262

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:
  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    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
    262 on at

    Thank you very much

  • Skybluekid Profile Picture
    262 on at

    @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,501 on at

    @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
    262 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard