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 Apps
Answered

Change icon color

(0) ShareShare
ReportReport
Posted on by

Hi @StalinPonnusamy 

 

For Waypoint icon, I want to change the icon color from red to green as available desk when user check out a desk.

Could you please help to edit the code?

 

If(ThisItem.IsSelected,RGBA(255, 191, 0, 1),With({_item:colOfficeBookingForThisDate},If(!IsBlank(LookUp(_item,Office.Id=ThisItem.ID&&Employee.Email=UserInfo.Email)),RGBA(255, 255, 0, 1),IsBlank(LookUp(_item,Office.Id=ThisItem.ID)),RGBA(54, 176, 75, 1),RGBA(255, 0, 0, 1))))

 

Thank you very much.

Categories:
  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    You could consider having a Available Yes/No column. That column cloud be patched accordingly to show its status. Then the color manipulation would be really simple.

     

    Regards

  • kinghnvn Profile Picture
    on at

    Yes, I have two columns CheckIn (Yes, No) and CheckOut (Yes, No).

    Could you please advice more details?

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    CheckIn and CheckOut refer to the person using the desk, right?

     

    On the other hand, Available is a property of the desk. What I would suggest is to Patch the column Available on the desk table (I am assuming you have a Desks table) whenever a user checks-in or out.

  • kinghnvn Profile Picture
    on at
    Hi Daniel,
     
    CheckIn and CheckOut refer to the person using the desk, right? -> Yes, that’ right.

     

    What I would suggest is to Patch the column Available on the desk table (I am assuming you have a Desks table) whenever a user checks-in or out. -> Could you please show the code for reference?

     

    Many thanks.

  • Verified answer
    jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Pacthing a Yes/No depends on you datasource and on the context:

     

    Patching a sharepoint a record in a gallery: Patch ( Desks, Gallery.Selected, { 'Available': true } )

     

    Patching a dateverse a record in a gallery: Patch( Desks, Gallery.Selected, { Available: 'Available(Desks)'.Yes} )

     

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard