Equipment Tab for Work Definitions
The Equipment tab for a work definition displays the equipment which is linked to the work definition that was selected for viewing from the Work Definitions page.
Equipment page for a work definition.
Click Link to add linked equipment to the work definition. Select a row and click Unlink to remove linked equipment from the work definition. By default, sites and lines are the only equipment types which can be linked to a top-level work definition. The equipment types which are allowed to be linked to top-level work definitions can be customized by overriding the GetAllowedEquipmentTypeForWorkDefinition service.
* 
The equipment information is only checked when the link is created. If equipment is updated after it has been linked to the work definition, that update is not synchronized to the information on the work definition.
Mashups and Widgets
The PTC.Factory.Demo.WorkDefinition.EquipmentMashup mashup defines the display of the Equipment tab for a work definition. This mashup uses the following widgets:
Multiple Button widgets:
For the Link button, which launches the LINK EQUIPMENT window.
For the Unlink button. This button is enabled when a row in the table is selected, and disabled when no row is selected.
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 Unlink button.
A Grid Advanced widget, listing all equipment that is linked to the work definition.
Inputs
The input for the PTC.Factory.Demo.WorkDefinition.EquipmentMashup mashup is the UID of the work definition that was viewed from the Work Definitions table.
Services
The mashup uses the following service from the PTC.Resource.Factory.MessageFormatUtiltites resource:
GetLocalizedMessageOneParam—Returns the localization tokens for the UNLINK EQUIPMENT window. There is an instance of the service for the message for the window title and the message text.
The mashup uses the following services from the PTC.Factory.Demo.WorkDefinitionUtils Thing:
DeleteWorkDefinitionProcessingResourceSpecifications—Removes the selected equipment from the list, when a user clicks OK on the UNLINK EQUIPMENT pop-up window.
GetAllowedEquipmentTypeForWorkDefinition—Retrieves the equipment of the equipment types that can be linked to work definitions. By default, only sites and lines are allowed for top-level work definitions. This can be customized by overriding the service and editing the equipment types specified in the service. Multiple equipment types can be specified as a comma-delimited list. The name of any equipment type listed must match the value in the EquipmentType field for the equipment type that is defined in the EquipmentTypeSettings configuration table on the launch point configuration Thing. For more information, see Defining Equipment Types.
GetEquipmentLinkedToWorkDefinition—Retrieves the equipment linked to the UID of the work definition, to be displayed in the table. There is an instance of this service that is triggered when the Equipment page is accessed, and an instance that is triggered when the LINK EQUIPMENT window is closed.
Was this helpful?