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 / Add content of gallery...
Power Apps
Answered

Add content of gallery into DataCard

(0) ShareShare
ReportReport
Posted on by 23

Hi all!

 

I have a scan button with the following "OnScan" function:

Collect(collectMultiScan;{BarcodeInfo:BarcodeScanner1.Value})

 And a gallery, with the following items:

collectMultiScan

 When I use the app with my phone I can add one barcode after another into the gallery.

 

So far so good.

 

But I would like to have the data stored into a Datacard. Preferably with a Button, which sends the data to the desired card upon pressing. 

The desired datacard is linked to a sharepoint list as a "single text item".

 

Do you guys have an Idea how this issue could be tackled?

 

Thank you in advance.

 

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

    Hi @LanesMan ,

    A bit of crossed purpose here - a Datacard is part of a Form and contains a field from a single record (not a collection). If you simply want to store the current scanned item and assuming the field attached is a Single Line of Text, make the Default of the Text Control in the Data Card

    Coalesce(
     BarcodeScanner1.Value,
     Parent.Default
    )

     

    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.

    Visit my blog Practical Power Apps

  • LanesMan Profile Picture
    23 on at

    Hi @WarrenBelz ,

    thank you for your response! It works to update the datacard with the current scanned barcode.

    But is it possible to add multible barcodes into the datacard and not the current scanned item only?

  • Verified answer
    WarrenBelz Profile Picture
    156,926 Most Valuable Professional on at

    Hi @LanesMan ,

    Do you want to have a text string separated by commas ? in which case the Default would be

    If(
     CountRows(collectMultiScan) > 0,
     Concat(
     collectMultiScan,
     BarcodeInfo & ","
     ),
     Parent.Default
    )

     

    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.

    Visit my blog Practical Power Apps

     

  • LanesMan Profile Picture
    23 on at

    Hi!

    Works like I want it to be. Thank you very much.

    Have a nice day!

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard