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 / Pressing multiple butt...
Power Apps
Unanswered

Pressing multiple buttons in a collection

(0) ShareShare
ReportReport
Posted on by 6

Hello, I am working on a small app that scans different barcodes and then collection with one button per item is created. I would like the buttons next to the preview to be pressed all at the same time. Is it something possible? To give you a better overview, every button is gonna print a different label in a Zebra Printer. Singularly, this works perfectly, but when I try to print them all together, it does not work cause I cannot press (select) all the buttons at the same time for different lines. Does someone know a workaround to this?

 

 

exampleScan.PNG
Categories:
I have the same question (0)
  • MaikoNGY Profile Picture
    38 on at

    Hello !
    You can try to do a button with a ForAll Loop on your Collection to print every rows you collected.

  • giorgiogaetani Profile Picture
    6 on at

    Thank you for the answer! Unfortunately I tried with a ForAll function, but it didn’t work. It prints always the same label for the number of rows.

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    If I understand correctly, you want to be able to press multiple buttons simultaneously in your app, where each button corresponds to a different item in a collection. This simultaneous button press should trigger the printing of labels for all the items on a Zebra Printer. However, pressing multiple buttons at the same time is not possible in most user interfaces.

    To achieve the desired functionality, you can consider the following approach:

    1. Group Selection: Instead of having separate buttons for each item, provide a checkbox or a selection mechanism (such as a multi-select list) next to each item in the collection. This allows the user to select multiple items simultaneously.

    2. Print Button: Add a single "Print" button somewhere on the screen, separate from the individual item entries. This button will be responsible for initiating the printing process for all the selected items.

    3. Track Selection: As the user selects or deselects items using checkboxes or the selection mechanism, keep track of the selected items in your app's data or state.

    4. Handle Print Action: When the user clicks the "Print" button, retrieve the list of selected items from the app's data or state. Iterate over the selected items and send the necessary commands or data to the Zebra Printer for printing each label.

    By implementing this approach, the user can select multiple items and then trigger the printing of labels for all the selected items with a single button press. This allows for a more efficient and streamlined printing process.

    Note: The implementation details may vary depending on the programming language, framework, or platform you are using for your app. But the general concept of grouping selection and triggering a collective action remains the same.

  • giorgiogaetani Profile Picture
    6 on at

    Thank you so much for your answer. At the end I had to work on a solution in a flow, in that way I was able to print different lines of my gallery.

     

    Thank you so much for your time, I really appreciate ! 🙂

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard