Adding Linked Equipment to a Work Definition
The LINK EQUIPMENT window is launched by clicking Link from the Equipment tab 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. Available equipment is equipment of the allowed types for the work definition or operation, minus any equipment that is already linked to the work definition or operation.
LINK EQUIPMENT window.
To link a piece of equipment to a work definition or operation, select the piece of equipment in the list, and click Link.
Mashups and Widgets
The PTC.Factory.Demo.AddLinkedEquipmentToWorkDefinitionMashup mashup defines the display of the LINK EQUIPMENT window. This mashup uses the following widgets:
A Label widget for the title of the window
A Data Filter widget, which filters the list based on the selected values.
An Infotable Selector widget. When no row is selected in the table, or there is no linked equipment, this widget disables the Link button.
Grid Advanced widget, which lists the equipment that is available to be linked.
Button widgets for the Link and Cancel buttons.
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 LINK EQUIPMENT window is closed, by either clicking Link 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 Link button is clicked, this service creates the link between the selected equipment and the work definition or operation.
Was this helpful?