Clearing or modifying an optional page parameter within UI Builder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi devs, I have a simple requirement that is proving difficult to implement. The requirement is navigating from an alert record to the alert view on the Crisis Map within Crisis Management on the BCM Workspace. The issue is that clicking into an alert view on the crisis map doesn't alter the URL so I have no way of navigating there from the alert record. I have opted to create an optional page parameter of alertId so I can pass the sys_id of the alert record into the UI Builder (UIB) page, then use that property to mimic the events fired when an alert card is clicked. I've had to modify the data resource within the controller to cater to this extra sys_id. It all seems to be working but the mimicked events are fired from the successful load of the 'Get crisis map alerts' data resource within the crisis map controller so every time the alert list is re-ordered or filters are applied, the events fire again and bring up the alert view for the alert brought in through the optional page parameter.
So that's the context. If you have any constructive criticism for this approach, I will wholeheartedly welcome it, but continuing with this approach, my question boils down to this. The events are firing conditionally on the presence of the optional page parameter. Is there anyway to clear or modify this optional page parameter so I can control when these events fire and prevent them firing again?
I've tried clearing the URL with a navigation event but that doesn't clear the optional page parameter.
Any help would be appreciated! Thanks all!
