Hi,
Hope someone can help me out. I'm trying to apply a Conditional Format on a button based on 2 different conditions at two different times.
Scenario: We use this window to manage and track repairs to assembled products.
This is the window. The theory behind the window is that the "Start Repair" button does not enter into Edit Mode unless the Batch Number/Purchase Order Text box is filled out, The "Start Repair" button will turn Green. This is done by a simple IF condition:
If(
!IsBlank(BatchNumber),
DisplayMode.Edit,
DisplayMode.Disabled)
Once this button is Green, they can then start the Timer, and this creates and holds a variable until the "Finish Repair" button is pressed and this writes to a sharepoint list. What I'm wanting to do is that once this variable is created, that this button Grey's out.
I thought something like:
If(
!IsBlank(BatchNumber),
DisplayMode.Edit,
DisplayMode.Disabled
||
(local_Variable.RepairRequired=true),
DisplayMode.Disabled,
Displaymode.Edit)
But this isn't have the expected results as I thought, as the Finish and Pause buttons are enabling, but the Start Repair is also staying enabled.
I am most likely completely off base on this, and would appreciated some help in figuring this one out.
Thank you for your consideration in advance.
Solved! Go to Solution.
hmmm... I don't quite understand what you need. It would be nice if you could provide the codes for each button to get a general idea. Another thing, I imagine that the buttons that are in gray are disabled, correct?
Anyway, what little I could understand, I imagine you can try like this:
If(
Or(
IsBlank(BatchNumber),
local_Variable.RepairRequired // If this variable is true/false and you want to test if it is true, it is not necessary to put '=true'
),
DisplayMode.Disabled,
DisplayMode.Edit
)
Hi! I hope I was helpfull. Please always mark the answer that helped you, so others who need it will find it faster.
hmmm... I don't quite understand what you need. It would be nice if you could provide the codes for each button to get a general idea. Another thing, I imagine that the buttons that are in gray are disabled, correct?
Anyway, what little I could understand, I imagine you can try like this:
If(
Or(
IsBlank(BatchNumber),
local_Variable.RepairRequired // If this variable is true/false and you want to test if it is true, it is not necessary to put '=true'
),
DisplayMode.Disabled,
DisplayMode.Edit
)
Hi! I hope I was helpfull. Please always mark the answer that helped you, so others who need it will find it faster.
That worked perfectly. Thank you heaps. Been scratching my head for days on that!