Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 2GPsdEPHbtUQ44dg0O6Urq
Power Apps - Building Power Apps
Answered

Show Check Icon in Gallery

Like (0) ShareShare
ReportReport
Posted on 23 Mar 2024 19:16:33 by

@SebS 

 

Hello Seb,

 

I'm still finetuning my galleries. I thought it would be helpful to the user if they were sorted in the same order and if a checkmark would appear in the left gallery once they scanned the item. I managed to get the checkmark to show up for one scanned item, but not the other. The Visible property for the green checkmark icon in the left gallery is:

 

ThisItem.'Barcode Value' in galTools.Selected.'Barcode Value'

 

Why would it be working for the Notepad item that was scanned, but not the Envelope item?

 

GalleryCheck.png

In regard to sorting, the Items formula for the left-hand gallery is:

 

SortByColumns(
 Filter(
 'Admin Desk Tools',
 StartsWith(
 'TekTrace Bench ID',
 txtScanBenchBarcode.Text
 ) && Status.Value = "Active"
 ),
 "ToolDescription",
 SortOrder.Ascending
)

 

The Items formula for the right-hand gallery is:

 

ForAll(
 Distinct(
 colTracking,
 ThisRecord
 ),
 Value
)

 

I like the Distinct gallery formula as it prevents duplicates if they accidentally scan a tool twice, but I'm having trouble adding a Sort feature to it for the Tool Description column. The internal name of the column is "ToolDescription".

 

Thanks in advance for your help! I'm really pleased with how the app is coming along and it is all thanks to you!

Teresa

Categories:
  • tagustin2020 Profile Picture
    on 23 Mar 2024 at 22:37:45
    Re: Show Check Icon in Gallery

    @WarrenBelz 

    @SebS 

     

    Thank you, Warren! That did the trick!

    Success.png

  • Verified answer
    WarrenBelz Profile Picture
    146,702 Most Valuable Professional on 23 Mar 2024 at 21:36:21
    Re: Show Check Icon in Gallery

    Hi @tagustin2020 ,

    I think you need

    ThisItem.'Barcode Value' in galTools.AllItems.'Barcode 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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started