cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Resolver II
Resolver II

Is it possible to copy text out of a data table?

I can't seem to highlight and copy text directly from a data table. Is this only possible by using a label that references the selected table data like in this code snippet?:

DataTable.Selected.City

If I can somehow copy directly from the table without having to use labels that would be ideal.

1 ACCEPTED SOLUTION

Accepted Solutions

@dlprentice 

DataTable1.Selected.ProductID&" | "&DataTable1.Selected.Name
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

5 REPLIES 5
eka24
Super User
Super User

By copying, do you intend using the selected item in another screen, if so then use a Variable like:

 Set(SelectedItem.DataTable1.Selected.City) 

On OnSelect of a Button

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

No, since data in the table can't be directly copied, its mostly just to make it easier for the end user to copy their "active" selection.

I was hoping to just spit out the selected row into a string:

Screenshot 2021-02-04 083656.png

Can you give a clear Example?

Do you want to join columns on the DataTable in a Textbox?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

I would like to join the selected row from from the DataTable into a textbox (Label1) in this case. With maybe a | to separate each part.

@dlprentice 

DataTable1.Selected.ProductID&" | "&DataTable1.Selected.Name
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,935)