I have a multi screen PowerApp that leverages a collection to collate the information entered. That colllection has one record that is displayed on the final page and the patched into the database. colNewJD is the variable that is passed between each page and patched to ensure that it has the users changes/updates.
I want to be able to disable the button if the record being viewed is being processed. The following code is being put in the button's DisplayMode field. I cannot access ThisItem.'Flow State' because it is in a Form, and the button is on the outside of the form.
If(First(colNewJD).'Flow State'='Flow State (Job Description Verifications)'.Processing,
FormMode.View,
FormMode.Edit
)
Problem: I am pretty sure my logical test is comparing different types, but I can't figure out what needs to change. The error message is "Expected enum value"
Solved! Go to Solution.
Welp. I was very close. I used the wrong Mode. i needed DisplayMode not FormMode.
If(First(colNewJD).'Flow State'='Flow State (Job Description Verifications)'.Processing,
DisplayMode.Disabled,
DisplayMode.Edit
)
Welp. I was very close. I used the wrong Mode. i needed DisplayMode not FormMode.
If(First(colNewJD).'Flow State'='Flow State (Job Description Verifications)'.Processing,
DisplayMode.Disabled,
DisplayMode.Edit
)
User | Count |
---|---|
255 | |
114 | |
94 | |
48 | |
38 |