Button OnSelect is.....
If(
Text(Last('Health Check').Date_Button_Pushed,"mm/dd/yyyy")=Text(Today(),"mm/dd/yyyy") &&
DateDiff(Last('Health Check').Date_Button_Pushed,Now(),TimeUnit.Hours)<=24,
Patch(
'Health Check',
Defaults('Health Check'),
{
ButtonColor: If(Last('Health Check').ButtonColor="Red","Green","Red"),
Date_Button_Pushed: Now(),
Health_Check: "1. New Part Set up - Daily",
Description: "Setup of all new parts the comes from the host based on dock i.d. & dimension ( Cognos Report)",
Category: "Daily"
}
),
Patch(
'Health Check',
Defaults('Health Check'),
{
ButtonColor: Last('Health Check').ButtonColor,
Date_Button_Pushed: Now(),
Health_Check: "1. New Part Set up - Daily",
Description: "Setup of all new parts the comes from the host based on dock i.d. & dimension ( Cognos Report)",
Category: "Daily"
}
)
)
------------------------------------------------------------------
Button Fill is..........
If(
IsEmpty(Last('Health Check')),
Color.Green,
If(
Text(Last('Health Check').Date_Button_Pushed,"mm/dd/yyyy")=Text(Today(),"mm/dd/yyyy") &&
DateDiff(Last('Health Check').Date_Button_Pushed,Now(),TimeUnit.Hours)<=24,
If(Last('Health Check').ButtonColor="Red", Color.Green, Color.Red),
If(Last('Health Check').ButtonColor="Red", Color.Red, Color.Green)
)
)
-----------------------------------------------------------------
I have multiple buttons with this same formula. As you may have already figured out, all of the buttons change color at the same time because I am using if(last.....
This formula is not letting me specify [ListName[.Column Name]
Example: IF('Health Check'.Health_Check = "xyz".....)
Not sure what to do here.... Any help would be greatly appreciated!!! 🙂
Thank you!