Scheduler Event Tooltip
Jump to navigation
Jump to search
With version 4.0 of the app, you can now define related lists in the event tooltip. Here's an example of the definition responsible for displaying breaks in a related list:
"eventTooltipFields": [
{
"label": "Worker",
"fieldPath": "b3s__Contact__r.Name",
"hideIfNull": false
},
{
"label": "Job",
"fieldPath": "b3s__Job__r.Name",
"hideIfNull": false
},
{
"label": "Site",
"fieldPath": "b3s__Site__r.Name",
"hideIfNull": true
},
{
"label": "Comments",
"fieldPath": "b3s__Comments__c",
"hideIfNull": false
},
{
"label": "Status",
"fieldPath": "b3s__Status__c",
"hideIfNull": true
},
{
"label": "Cancellation Reason",
"fieldPath": "b3s__Cancellation_Reason__c",
"hideIfNull": true
},
{
"label": "Travel",
"fieldPath": "b3s__Travel_Status__c",
"hideIfNull": true
},
{
"label": "Created Date",
"fieldPath": "CreatedDate",
"formatter": "dateTime",
"hideIfNull": true
},
{
"label": "Breaks",
"type": "break",
"childObjectName": "b3s__Break__c",
"childField": "b3s__Shift__c",
"parentFieldPath": "Id",
"title": [
{
"label": "Scheduled Start",
"fieldPath": "b3s__Start__c",
"formatter": "time",
"hideIfNull": true
},
{
"label": "Scheduled End",
"fieldPath": "b3s__End__c",
"formatter": "time",
"hideIfNull": true
}
]
}
],
One thing to note is if you want to display related records, you must also define them as a schedulable instance
{
"timezonePreference": "user",
"firstDay": 1,
"is24Hour": false,
"schedulables": {
"break":{
"objectType": "b3s__Break__c"
},
"invitation": {
"objectType":"b3s__Invitation__c",
...
}
}
}