Adding Actual Time Fields to Custom Appointment Tooltips
To help dispatchers quickly notice situations where Appointments start at times before or after the configured Scheduled Start and Scheduled End field values, you can add Actual Start Time and Actual End Time fields to custom Appointment tooltips.
To add these fields to custom Appointment tooltips, you update the Code field in the relevant Tooltip Definition record with additional code. For more information, see Configuring Job Card and Appointment Tooltips.
To add Actual Time fields to custom Appointment tooltips:
1. In Max Designer, click Developer Tools () > Object Designer, and then in the top left corner, search for and click Tooltip Definition.
2. In the left pane, click Records, and then in the list view, click the Tooltip Definition record for the custom Appointment tooltip you want to update.
3. On the record page, in the Code field, update the Groovy code to add the Actual Start Time and Actual End Time fields, for example:
actualStart = svmx_actual_start_time? "*${svmx_actual_start_time}*" : '-'
actualEnd = svmx_actual_end_time? "*${svmx_actual_end_time}*" : '-'
"""
<li>Scheduled Start: *${svmx_start_datetime}*</li>
<li>Scheduled End: *${svmx_end_datetime}*</li>
<li>Actual Start: ${actualStart}</li>
<li>Actual End: ${actualEnd}</li>
"""
4. In the top left corner, click Save and Close ().
Was this helpful?