Work Definition Detail Page
The work definition detail page displays information about the work definition that was selected for viewing from the Work Definitions table. The detail page includes three menu options for the information to display: General Information, Operations, and Equipment.
Work definition detail page, with the contained mashup blurred.
Mashups and Widgets
The PTC.Factory.Demo.WorkDefinitionDetailMashup mashup defines the work definition detail page. It includes a contained mashup which displays the mashup associated with the option selected in the left menu pane: General Information (PTC.Factory.Demo.WorkDefinitionGeneralInfoMashup), Operations (PTC.Factory.Demo.WorkDefinitionOperationsMashup), or Equipment (PTC.Factory.Demo.WorkDefinition.EquipmentMashup).
The PTC.Factory.Demo.WorkDefinitionDetailMashup mashup uses the following widgets:
A Button for the back button (Back button icon.).
A Label widget to display the identifying information for the work definition. The identifying information is made up of the type plus the ID for the work definition. For example: Work definition identification string..
A Historyless Accordion Menu widget, which defines the menu bar on the left. The menu includes three options: General Information, Operations, and Equipment. When a menu option is selected, the mashup associated with the selected option in the PTC.Factory.Demo.WorkDefinitionMenu menu is displayed in the Contained Mashup widget.
A Contained Mashup widget, which displays the mashup associated with the selected menu option.
The PTC.Factory.Demo.WorkDefinitionDetailMaster mashup is specified as the Master property on the PTC.Factory.Demo.WorkDefinitionDetailMashup mashup, and supplies the banner at the top of the page.
Inputs
The input parameters for the PTC.Factory.Demo.WorkDefinitionDetailMashup mashup are:
wdUID—The UID of the work definition that was selected for viewing from the Work Definitions table.
nestedMashup—The mashup associated with the selected option in the Historyless Accordion Menu widget. If this input parameter value is empty, such as when the detail page is initially launched, the default mashup defined in the PTC.Factory.Demo.WorkDefinitionMenu menu is displayed.
Outputs
The UID of the work definition being viewed is passed to the mashup displayed in the Contained Mashup widget.
Services
The mashup uses the following service from the PTC.Factory.CommonUtilities resource:
GetNestedMenu—Retrieves the information for the menu name passed from the GetWorkDefinitionMenuName service, which is passed to the Historyless Accordion Menu widget.
The mashup uses the following services from the PTC.Factory.Demo.WorkDefinitionUtils Thing:
GetWorkDefinition—Retrieves the information for the work definition that was selected from the Work Definitions table.
GetWorkDefinitionTitleLabel—Retrieves the ID value for the work definition from the information returned by the GetWorkDefinition service. This value is used in the Label widget at the top of the page.
GetWorkDefinitionMenuName—Returns the name of the menu used in the left pane (PTC.Factory.Demo.WorkDefinitionMenu). This value is passed as input to the GetNestedMenu and GetDefaultNestedMashupFromMenu services.
The mashup uses the following service from the PTC.SCA.SCO.ManageResourceUtils Thing:
GetDefaultNestedMashupFromMenu—Retrieves the mashup to be displayed in the Contained Mashup widget for the selected menu option from the PTC.Factory.Demo.WorkDefinitionMenu menu. If no nestedMashup input parameter is provided for this service, then the default mashup defined in the PTC.Factory.Demo.WorkDefinitionMenu menu is displayed.
Was this helpful?