Timeline UI Builder Element (selectedMarkers) payload Is always empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 3 hours ago
Hello,
I have this timeline added to a workspace.
As with most things UI Builder im really frustrated as the timeline element does not seem to be functioning properly.(or maybe....im doing something wrong)
As you can see from the screenshot below if I hover over a grouped event I can see the events which are groupped under this marker and that is perfectly fine.
However since my implementation requires the events to be clickable so I can open them in their respective forms in the workspace I need to know if a groupped pin is clicked or a single event marker is clicked.
The UI Builder Timeline element on Data clicked has several elements in its payload
1. selectedEvents
2.selectedRanges
3.selectedMarkers
My problems is that when I click on a groupped marker this is what I get in my payload after adding a Data click event script and logging the event:
{
"elementId": "timeline_1",
"name": "TIMELINE_CHART#DATA_SELECTED",
"payload": {
"selectedEvents": [
{
"eventName": "Success Task",
"timestamp": 1782481196000,
"description": "Test has completed Improvement Task",
"data": {
"table": "sn_acct_lc_success_task",
"sys_id": "bbac94989779075006963c70f053af90",
"label": "Success Task",
"activity_type_id": "c5ef5d04ff34a2101d86ffffffffff2d",
"details": "Success Task | Improvement Task",
"title": "Test completed Improvement Task",
"timestamp": 1782481196000
}
}
],
"selectedRanges": [],
"selectedMarkers": []
},
"context": {}
}
I get the selectedEvents which for some reason contains only the first event under the grouped marker and
"selectedRanges": [], "selectedMarkers": [] are both empty.
At this point its very hard for me to determine what has actually been clicked.
I have read the documentation and it advises that you have to scroll to the event to open it but...how can I know if a groupped event is clicked to advise the user to do that?
Has anyone faced this ?
Any help would be appreciated.
Thank you.