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.
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} )
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.
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.
Yes, I have two columns CheckIn (Yes, No) and CheckOut (Yes, No).
Could you please advice more details?
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
MS.Ragavendar
10
LC-26081402-0
6
EE-04041031-0
4