Hello everyone,
I am looking to give access to some employees to update work orders by deleting/adding/editing operations and parts, but not be able to delete the work order.
I realize if there is a transaction it will prevent them from deleting the work order, but I am trying to prevent it before there is any transactions recorded.
I tried service security for BO.JobEntry method DeleteByID. This method prevents job deletion, unfortunately it also prevent part and operation deletion as well.
Trace shows method update for JobEntry for both job deletion and operation deletion.
Is there a way to distinguish between job deletion vs operation deletion in pre-process?
or
Is there a method or flag that indicates that job can be edit/updated but not deleted?
It would also be nice to be able to give access based on groups?
Hi Calvin,
Good point, but my main problem is what method is for job deletion and what method for operation deletion. They both seem to reference Update for JobEntry.
thanks
I did some light testing, you will want to fully test this for any loopholes.
Using the BPM below I was able to prevent JobHead deletion but was still allowed to delete Job Assemblies, Operations, Mtls, etc.
You definitely need to have this tied to a user security group since other process (MRP) and users need to delete Jobs.
Method: JobEntry.Update
Pre-Processing Directive
Two Condition:
-There is at least one deleted row in the ttJobHead table
AND The user who called the method belongs to the NoJobDelete group
If true then Raise Exception message that Job Deletion is not allowed
Working on some thing similar for PO’s. Set this up the same way, but I need be able to delete after the warning. Do I need to set the warning or something else up to allow deletion? For PO’s, the issue is that people are not paying attention to whether they are deleting a line or the entire PO. Same deletion warning out of the box.
Doesn’t seem to be working for me. I created a new group and test user. The test user not part of the group can delete operations, parts and work orders.
Am I missing a setup somewhere, like company/site maintenance?
Or is it version based. We are on 10.2.100.6
That directive only checks for the JobHead AND if the user is in the group. Effectively preventing users in that group from deleting the JobHead (whole job).
Anyone can still delete Mtls, Ops, etc…
Anyone not in that group can still delete the JobHead (whole job)