I thought I had this all solved and resolved but apparently not. Essentially I am on the look out for the best method to prevent a group of users from checking a check box and savings.
For this instance it’s the Closed tick box for the Job Completion/Closing Maintenance as below;
Now, the exception did pop up for the user, however, the check box was still ticked and would still process to complete the job.
I’ve tried processes on JobEntry but have had no luck. I’m running out of ideas and cannot seem to figure out the cleanest way of making this possible. This would be really good to understand properly for future use as well.
I think you could use the method from this post Check user group in App Studio - Tech Demo If the condition is true, do a property set on that checkbox to make it disabled.
And I didn’t do any sort of Set Field. Raising an exception will prevent any changes they attempt to make when they click the Close checkbox so both Complete & Close revert back to false automatically.
Service Security Maintenance is another way to restrict Business object usage per security group, without using BPM. Worth taking a look, to add to your developer toolkit
So it turns out the users of the group actually need access to ‘Complete’ the Jobs but not ‘Closed’, so this has become tricky. As the method on JobClosing.Close affects the Complete checkbox, so I don’t believe I can use this method.
I tried Field Security but that did nothing for the menu so seem to be back where I was originally.
Agree here - the BPM thing is fine if it works, but I mean keep it simple and just lock out the box(es) from the get-go. This should work around your issue @GE-Chess