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 Apps - Building Power Apps
Answered

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.

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

Responsible AI policies

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard