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 / Copy a selected value ...
Power Apps
Unanswered

Copy a selected value of Data Table to a Text box used as search on different screen

(0) ShareShare
ReportReport
Posted on by 70

I have a screen that has Data Table columns with names(hyperlinked), once I select the name it should navigate to a different screen where a searhbox is placed. and it should copy the selected name in the searchbox. i dont know who to input the function

 

The function that I have entered is

 

OnSelect - Navigate(ScreenStaffDetials,ScreenTransition.None);Copy(BoxSearch.Text) .

I am getting an error on the red text.

Please assist. 

 

Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @rehankazi ,

    Copy is not a valid Power Apps command, You need to set a Variable

    Set(
     YourVariableName,
     BoxSearch.Text
    )

    then refer to this when you need the value.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • rehankazi Profile Picture
    70 on at

    @WarrenBelz , thanks for the reply, after I enter my variable ( as i understand the column name) it still gives me an error under the variable.

     

    Navigate(ScreenStaffDetials,ScreenTransition.None);Set('B2 TECH_Column1',BoxSearch.Text)

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @rehankazi ,

    You cannot write to a column like that, You can set a Variable (not the column name - example below)

    Set(gblTech,BoxSearch.Text)

    then the Default of the control containing that column on the next screen can be gblTech (or whatever you want to call the Variable). What exactly are you trying to do here?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard