Only allow delete change if change has never been submitted
Hi Agile gurus,
We currently only allow users to delete a their own change order if it is in unassigned or pending without affected items.
Is there a way to only allow a user to delete a change with those same criteria, PLUS the change has never been submitted?
I was hoping there was a ‘last status’ parameter but I don’t see anything I can use to build a criteria to not allow them to delete if the change has been submitted.
Besides not allowing users to delete their own changes at all, is there a way to do this?
Thank you,
Laura
As per my knowledge, your requirement cannot be resolved with configuration setup. Let’s wait, if other experts can suggest any solution with configuration.
You can achieve it using Event Framework by setting up a Pre-Event for Delete Object type event and have additional checks using custom code.
Yes, I’d do a PX for this that either checks the object’s history tab or PX that does a quick database query check for the change (“select submit_date from agile.change where change_number = ?”). Then if either method returns null, throw a new DSL Exception and block the Delete Object event type as Samalendu mentioned. I can’t really think of any other way.