Material Detail Page
The material detail page displays information about the material that was selected for viewing from the Materials table.
Material detail page, with the contained mashup blurred.
Mashups and Widgets
The PTC.Factory.Demo.MaterialDetailMashup mashup defines the material detail page. It includes a contained mashup which displays the mashup for the option selected in the left menu pane. For the materials detail page, the menu lists only the General Information option, which displays the general information mashup for materials (PTC.Factory.Demo.MaterialGeneralInfoMashup).
The PTC.Factory.Demo.MaterialDetailMashup mashup uses the following widgets:
A Button widget for the back button (Back button icon.).
A Label widget to display the identifying information for the material. The identifying information is made up of the type plus the ID for the material. For example: Material identification string..
A Historyless Accordion Menu widget, which defines the menu bar on the left. The mashup associated with the selected menu option is displayed in the Contained Mashup widget. For the material detail page, the menu (PTC.Factory.Demo.MaterialMenu) includes only the General Information option.
A Contained Mashup widget, which displays the mashup associated with the selected menu option.
The PTC.Factory.Demo.MaterialDetailMaster mashup is specified as the Master property on the PTC.Factory.Demo.MaterialDetailMashup mashup, and supplies the banner at the top of the page.
Inputs
The input parameters for the PTC.Factory.Demo.MaterialDetailMashup mashup are:
materialUID—The UID of the material that was selected for viewing from the Materials 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.MaterialMenu menu is displayed.
Outputs
The UID of the material 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 GetMaterialMenuName service, which is passed to the Historyless Accordion Menu widget.
The mashup uses the following services from the PTC.Factory.Demo.MaterialDefinitionUtils Thing:
GetMaterialDefinition—Retrieves the information for the material that was selected from the Materials table.
GetMaterialDefinitionTitleLabel—Retrieves the ID value for the material from the information returned by the GetMaterialDefinition service. This value is used in the Label widget at the top of the page.
GetMaterialMenuName—Returns the name of the menu used in the left pane (PTC.Factory.Demo.MaterialMenu). This value is used 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.MaterialMenu menu. If no nestedMashup input parameter is provided, then the default mashup defined in the PTC.Factory.Demo.MaterialMenu menu is displayed.
Was this helpful?