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 / Insert variable into D...
Power Apps
Unanswered

Insert variable into Data card field

(0) ShareShare
ReportReport
Posted on by 13

Hi

 

I have a screen to capture a new Asset, that looks like this:


Capture.JPG

 

When someone taps the first camera icon the code on the button is

On Select: Set(ScanAssetCode, ScanBarcode())

The field name for "Asset Number" on the Data card is "DataCardValue26"

 

How do you put the scanned barcode number thats inside "ScanAssetCode" into the field "DataCardValue26" so the person doesnt have to type it in?

 

The googling Ive done talks about context variables, but I havent been able to figure out how to use them in this context, any help appreciated.

 

Thanks

Categories:
  • KickingApps Profile Picture
    628 on at

    @turnbe Try putting ScanAssetCode

    in the Text for DataCardValue26:

    image.png

  • KickingApps Profile Picture
    628 on at
    Did that work for you? If so, would appreciate it it you’d accept as solution for others to find. Or, if it didn’t, let me know and we can try something else. Thanks!
  • Turnby Profile Picture
    13 on at

    Hi

     

    "DataCardValue26" doesnt have a "text" property that can be set. Its currently set with "Default = Parent.default" and I cant overwrite it.

     

     

    Thanks

  • Turnby Profile Picture
    13 on at

    Hi

     

    The suggestion didnt work, does anyone else know how to do this?

     

    Thanks

  • KickingApps Profile Picture
    628 on at

    Any chance you can share the app or send me a screen shot to include the error.  I'd like to help you solve.

  • Turnby Profile Picture
    13 on at

    Hi

     

    Thanks for the reply. So I cant put "ScannedAssetCode" into the text property of DataCardValue26, because there is no Text property for it. See screenshot below.App1.JPG

     

    And on the camera button I have the below, but that doesnt work either.

    App2.JPG

     

    Thanks

  • KickingApps Profile Picture
    628 on at

    Try changing deleting DataCardValue 26 control and replace it with a Label  from the Insert --> Text menu.

  • Turnby Profile Picture
    13 on at

    Hi

     

    Yes I can do that but how will the data in the new lavel push back up into the sharepoint list field when the new item is saved?

     

    Thanks

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard