Equipment Page for Work Definitions
The Equipment page for a work definition displays the equipment which is linked to the work definition that was viewed from the Work Definitions table.
Equipment page for a work definition.
Click Add Linked Equipment icon. to add linked equipment to the work definition. Select a row and click Remove Linked Equipment icon. 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 page. This mashup uses the following widgets:
A Grid Advanced widget, listing all equipment that is linked to the work definition.
Button widgets for the Add Linked Equipment (Add Linked Equipment icon.) and Remove Linked Equipment (Remove Linked Equipment icon.) actions.
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 Remove Linked Equipment button.
A Navigation widget which launches the REMOVE LINKED EQUIPMENT window when Remove Linked Equipment icon. is clicked.
A Navigation widget which launches the ADD LINKED EQUIPMENT window when Add Linked Equipment icon. is clicked.
A hidden Checkbox widget that sets the default value to false for the okClicked input parameter for the REMOVE LINKED EQUIPMENT window.
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 REMOVE LINKED 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 REMOVE LINKED 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. This service is triggered when the Equipment page is accessed, and when the ADD LINKED EQUIPMENT window is closed.
Was this helpful?