Materials List Component
The materials list component displays the materials associated with a work instruction, listing the part number, part name, quantity, and unit of measure for each material.
Materials list component
Selecting a row in the materials list selects the related parts in the CAD diagram on the CAD tab mashup (PTC.SCA.SCO.WorkDefinition.CADContainedMashup) in the work definition media display component.
Mashups and Widgets
The PTC.SCA.SCO.MaterialsListMashup mashup defines the materials list component. This mashup uses the following widgets:
A Label widget that provides the title for the list.
A Grid Advanced widget that displays the list of materials associated with the selected work instruction tile in the sequential navigation component mashup (PTC.SCA.SCO.WorkDefinitionHorizontalSequentialNavigation).
Inputs
The primary input for the PTC.SCA.SCO.MaterialsListMashup mashup is the UID of the work definition associated with the selected work instruction tile in the sequential navigation component mashup (PTC.SCA.SCO.WorkDefinitionHorizontalSequentialNavigation). For more information on work definitions and their related information, see Work Definition Schema.
The input for cross-selection between the materials list and the CAD diagram comes from the SelectedRows property on the CAD tab mashup (PTC.SCA.SCO.WorkDefinition.CADContainedMashup) that is used in the work definition media display component. When one or more parts in the CAD diagram are selected, that selection sets the value for the SelectedRows property on the CAD tab mashup. This value is passed to the SelectedRows property on the materials list mashup.
Outputs
When a row in the materials list is selected, the ConvertSelectedRowsToSelectedParts service sets the value for the SelectedParts property on the PTC.SCA.SCO.MaterialsListMashup mashup. This value is passed to the SelectedParts property on the PTC.SCA.SCO.WorkDefinition.CADContainedMashup mashup.
Services
The mashup uses the following services from the PTC.SCA.SCO.ThingViewUtils Thing:
ConvertSelectedRowsToSelectedParts—Converts the selected rows in the materials list to selected parts in the CAD diagram.
GetMaterialsList—Returns a list of the materials associated with the given work definition UID.
GetOccurrencePathsList—Returns a mapping of materials to their corresponding occurrence paths for the given work definition UID.
Was this helpful?