Adding Linked Equipment to a Work Definition
The ADD LINKED EQUIPMENT window is launched by clicking Add Linked Equipment icon. from the Equipment page (for work definitions), or the Equipment tab (for operations). The window lists the equipment available to be linked to the work definition or operation, based on the location from where the window was launched. For top-level work definitions, sites and lines can be linked by default. For operations (child work definitions), assets can be linked by default. The list of Available equipment is equipment of the allowed types for the work definition or operation, minus equipment that is already linked to the work definition or operation.
Mashups and Widgets
The PTC.Factory.Demo.AddLinkedEquipmentToWorkDefinitionMashup mashup defines the display of the ADD LINKED EQUIPMENT window. This mashup uses the following widgets:
A Value Display widget for the title of the window
Button widgets for the Add and Cancel buttons
Grid Advanced widget which lists the equipment that is available to be linked.
A Data Filter widget which filters the list based on the selected values.
Inputs
The input parameters for the PTC.Factory.Demo.AddLinkedEquipmentToWorkDefinitionMashup mashup are:
linkedEquipment—The list of equipment that is already linked to the work definition or operation. This equipment is excluded from the list of equipment that is available to be added.
workDefinitionUID—The UID of the work definition or operation (child work definition) to which equipment is being linked.
allowedEquipmentTypes—The equipment types that can be added to the work definition or operation. By default, sites and lines can be linked to a top-level work definition and assets can be linked to an operation. This input comes from the GetAllowedEquipmentTypeForWorkDefinition or GetAllowedEquipmentTypeForOperation service on the launching mashup.
Outputs
When the ADD LINKED EQUIPMENT window is closed, by either clicking Add or Cancel, the GetEquipmentLinkedToWorkDefinition service is triggered for the mashup from which the window was launched.
Services
The mashup uses the following services on the PTC.Factory.Demo.WorkDefinitionUtils Thing:
GetLinkableEquipment—Retrieves the list of all equipment that can be linked to this work definition or operation. This list is made up of all equipment of the allowable equipment types, minus the list of equipment that is already linked to the work definition or operation.
LinkWorkDefinitionAndEquipment—When the Add button is clicked, this service creates the link between the selected equipment and the work definition or operation.
Was this helpful?