Configuring Event Tooltips
You can configure tooltips for Events on the Scheduler Calendar. To do so, you configure a Tooltip Definition record, define code to automatically generate information when users move their mouse pointers over an Event block, and then configure a key-value pair in the Tooltip Settings record.
|
|
Tooltips are regenerated whenever Event records are directly or indirectly updated.
|
To configure Event tooltips:
2. In the
Code field, implement Groovy code to define the tooltip content as shown in the following example, and then in the top left corner, click
Save and Close (

).
To configure a tooltip that shows values from the Name, Start, End, Assign To Resource, and Travel Time to Location fields:
def start = "*${svmx_start}*(io_timestamp)"
def end = "*${svmx_end}*(io_timestamp)"
if (svmx_all_day_event) {
start = svmx_start.withZone(DateTimeZone.UTC).toString('MM/dd/YYYY')
end = svmx_end.withZone(DateTimeZone.UTC).plusDays(1).toString('MM/dd/YYYY')
}
"""
${svmx_name}
<li>Assigned To: ${svmx_assigned_to.svmx_name}</li>
<li>Start: ${start}</li>
<li>End: ${end}</li>
<li>Travel Time: *${svmx_travel_time_to_location}*(io_interval)</li>
"""
3. Follow the steps in
Configuring Tooltip Settings to configure a key-value pair for the new
Tooltip Definition record in the
Tooltip Setting setting with the
svmx_event::gantt_tooltip key.