Edit Activity
Launch the Edit Activity screen by selecting an activity from the list on the Activities screen, and clicking Edit. From the Edit Activity screen, you can edit the activity name, start time, end time, and description. Click Update to save the edited activity information.
Edit Activity screen
Mashup and Widgets
The PTC.SCA.SCO.EditActivity mashup defines the Edit Activity screen. The mashup uses Label, Button, and Text Box widgets:
Label widgets are used for the Edit Activity page heading, and to provide the hint text appearing over each of the fields.
Button widgets are used for the Update and Cancel buttons.
Text Box widgets are used to define the Name, Start Time, and End Time fields.
Services
The PTC.SCA.SCO.EditActivity mashup uses the following services from the PTC.SCA.SCO.ShiftManagementUtils thing:
IsFieldEmpty—Validates if a required field in the screen is empty.
IsTimeValid, IsTimeValid1—Validates that the time value is entered in a valid format. An instance of the service is present for each time field (Start Time and End Time).
UpdateWorkActivities—Updates the activity with the edited information.
ValidateActivities—Validates that all required fields for the activity are not null and that the values entered are valid.
Was this helpful?