Maximo Open Forum

 View Only

 ATTACHMENTS

  • Administration
  • Everything Maximo
  • Maximo User Groups
  • Procurement
  • Security
DESIREE HARSHMAN's profile image
DESIREE HARSHMAN posted 05-05-2025 14:40

Good afternoon,

I am looking to add a pop box when adding a new attachment in the PR/PO application.  Once you select add new attachments I would like to add pop up with a notification not to attach certain types of documents/information.  If someone can please assist me on how I would accomplish this,  It would be greatly appreciated! 

Thanks in advance!

Viet Tran's profile image
Viet Tran

Depending on when you want the notification to show.

  • If you want it to show before the user selecting a file, I suggest you keep it simple by adding a Label in the "Add New Attachment" dialog. To do it, you will have to export the Library XML (in Application Designer), then edit the dialog with ID "addnewattachmentfile".
  • If you want it to be displayed when the user is adding a file:
    • Create a "Warning" message in the Database Configuration app > Messages.

    •  Create an automation script on the Save event of the Doclinks object. In the script, you can display the message by calling the service.setWarning method as follows

    • When adding an attachment file, while the file is being added, Maximo will show a warning, but still let the user uploading the file. If you want to block the user from doing it based on certain logic, you can use service.error('cust', 'attachmentWarning') to throw an error instead.