Out-of-the-box, Inspection Forms can be deleted when they are in a "Draft" or "Pending revision" Status. But an Inspection Form in "Active" Status can be changed to "Inactive" and that should prevent it from being used for future Inspections. While it may be possible to develop a customization to delete Inspection Forms, extreme care would be necessary to ensure that no revision of the Inspection Form has ever been referenced anywhere else in the system as that would cause serious referential integrity issues particularly if any InspectionResult records have been generated for any of the revisions.
Can you explain why you are trying to delete Active Inspection Forms or why simply changing them to "Inactive" doesn't address your issue?
In a related post, Steve Lee mentioned that the relations between Assets (or Locations) and Inspection Forms is tracked in the InspForUserWith table. That is incorrect. The actual table name is InspFormUseWith (no "r" before "With"). Steve mentioned that OOTB this table is not exposed in the Assets (or Locations) application. Although it is not intuitive, it actually is. If you select "Scheduled Inspections" under "More Actions", it will bring up the "Create an Unscheduled Inspection" dialog. If you then click the "Select Inspection Form" push-button, it will bring up the "Select an Inspection Form" dialog which contains two tables. The upper one labeled "Recommended Forms" displays the Inspections Forms associated with the current Asset (or Location).
In response to Anne Antonelli's post, it should be pretty easy to add a trashcan (Delete) column to this table to delete the related InspFormUseWith record. This would be done by exporting the Library.xml in Application Designer, editing it to make the necessary changes, and re-importing the XML. There are 2 occurrences of that dialog in the Library.xml.
It should also be pretty easy to add a similar table to the "Associate Inspection Form" dialog so the user can see what forms are already associated with the Asset before associating another one. That is exactly what Idea MASM-I-858 mentioned by Amy Tatum is requesting. That dialog would need to be modified in the Asset.xml and Location.xml separately.
------------------------------
Julio Hernandez
Ergonare, Inc.
Phoenix AZ
480-759-9870
------------------------------
Original Message:
Sent: Wed November 20, 2024 06:08 PM
From: Ryan Nielsen
Subject: Delete Inspection Forms?
Is there a way to delete inspection forms or the different iterations of them?