Set Baseline Selection Popup Mashup
The set baseline selection popup mashup (PTC.ActionTracker.SetBaselineSelectionPopup_MU) displays the Set Baseline window. It is launched by clicking the Baseline Date Range field when creating or editing an action.
The Set Baseline window.
Widgets
The PTC.ActionTracker.SetBaselineSelectionPopup_MU mashup uses the following widgets:
Multiple Label widgets for the title, field labels, and text on the mashup.
A Date Time Picker widget for the Start and End Date field.
Multiple Button widgets:
For the Save button. This button is enabled only once a valid date range has been set in the Start and End Date field.
For the Cancel button.
A Text Field widget. The value for this invisible text field is added when the Start and End Date field is set, prompting the ValidateBaselineDateRange service to be executed.
Inputs
The input parameters for the PTC.ActionTracker.SetBaselineSelectionPopup_MU mashup are:
manager—The manager from which the dynamic services on this mashup are run.
reasonTreeNodeUid—The UID of the selected reason tree node on the action.
modelUid—The UID of the equipment selected on the action.
reasoncategoryUid—The UID of the reason category for the selected reason.
baseline—The calculated baseline value.
endDate—The end date selected in the Start and End Date field.
startDate—The start date selected in the Start and End Date field.
Outputs
The output parameters for the PTC.ActionTracker.SetBaselineSelectionPopup_MU mashup are the same as the input parameters.
Services
The mashup uses the following dynamic services from the PTC.ActionTracker.Management_TS Thing Shape:
QueryBaseline—Calculates the baseline value based on the selected equipment, reason, and date range.
ValidateBaselineDateRange—validates that the selected date range is valid. cannot select a future value.
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.ActionTracker.Management_TS Thing Shape. For more information, see Dynamic Services in the Mashup Builder section of the ThingWorx Help Center.
Was this helpful?