Update Loss Event Mashup
The update loss event mashup (PTC.ProductionDashboard.UpdateLossEvent_MU) is the main mashup for the Edit Loss Event window, providing the wrapper for the contained mashups and the buttons. This window is launched by clicking an event in the Event Log.
Widgets
The PTC.ProductionDashboard.UpdateLossEvent_MU mashup uses the following widgets:
• Multiple Contained Mashup widgets, which call the following mashups:
◦ PTC.ProductionDashboard.EntryHeader_MU
◦ PTC.OperationKPI.TreeSelector_MU
◦ PTC.ProductionDashboard.LossEventDetails_MU
◦ PTC.ProductionDashboard.DeleteEvent_MU
• Multiple Button widgets, used for the Save and Cancel buttons.
Inputs
The input parameters for the PTC.ProductionDashboard.UpdateLossEvent_MU are:
• selectedEventCategory—An infotable containing information about the selected event category.
• selectedReason—An infotable containing information about the selected loss reason.
• timeZone—The time zone for the site to which the selected work center belongs.
• showSplitEvent—A Boolean indicating whether the event being edited is an automated event.
• thingName—The Thing name of the pacemaker for the selected work center.
• event—An infotable containing information about the loss event being edited.
• manager—The manager from which the dynamic services on this mashup are run.
• workCenterThingName—The Thing name of the selected work center.
Outputs
The output parameters for the PTC.ProductionDashboard.UpdateLossEvent_MU are:
• selectedEventCategory—An infotable containing information about the selected event category.
• selectedReason—The selected loss reason.
• showSplitEvent—A Boolean indicating whether the event being edited is an automated event.
Services
The mashup uses the following service from the RuntimeLocalizationFunctions resource:
• GetEffectiveToken—Retrieves the token for any localized message text.
The mashup uses the following dynamic services from the PTC.ProductionDashboard.Management_TS Thing Shape:
• CreateOrUpdateEvent—Creates or updates an event based on the specified information.
• GetModel—Retrieves the pacemaker for the event.
• GetProductionBlockInfo–Retrieves information for a specified production block.
• GetReasonTypeFilterByAction—Retrieves the list of reason types appropriate for this action.
Dynamic services allow you to select the entity to execute a service at runtime. In this case, the service can be executed from any entity that implements the
PTC.ProductionDashboard.Management_TS Thing Shape. For more information, see
Dynamic Services in the Mashup Builder section of the ThingWorx Help Center.