The work order attachments widget allows users to see and add attachments to a work order.


The default configuration of this module is as follows:


{
  "module": "WorkDetailDoclinksTileModule",
  "allowAdd": true,
  "addToDocType": "Attachments",
  "allowDescription": false
}


This configuration can be modified by adding a configuration map to the moduleconfig section of the STAUTOSCRIPT.STAMCONFIG automation script.



Disable adding attachments

It is possible to configure Opqo to display existing attachments, but not allow them to be added with Opqo.  This is controlled by the allowAdd property.


Adding configuration with the allowAdd property set to false will disable the ability to add attachments.


The default value of this property is true.


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailDoclinksTileModule",
      "allowAdd": false
    }
  ]
}



Change the folder that attachments are added to

By default, attachments are added to the Attachments document folder.  This can be changed via the addToDocType property.


Set the addToDocType property to the DOCTYPE of a valid document folder, as defined within the Work Order Tracking application in Maximo.


This property is only referenced when attachments are enabled and allowAdd is true.


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailDoclinksTileModule",
      "addToDocType": "Images"
    }
  ]
}



Enable entry of attachment descriptions

When attachments are added, the filenames are auto-generated, and Maximo sets the attachment description to the filename.  


Opqo 24.09.0 added support for enabling the user to enter attachment descriptions.


Setting the property allowDescription to true adds a step in the process of adding an attachment, where the user is prompted to enter the description for the attachment.


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailDoclinksTileModule",
      "allowDescription": true
    }
  ]
}


Disable work order attachments

Opqo allows viewing and adding work order attachments by default. 


Adding configuration with the remove property set to true will remove this module from the work order detail screen.  Users will not be able to view or add work order attachments.


appConfig = {
  ...
  "moduleconfig": [
    ...
    {
      "module": "WorkDetailDoclinksTileModule",
      "remove": true
    }
  ]
}