configure in technical editor, if I click on any column, navigate to respective lists in native view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
In Technical editor, UI builder, If I click on the ITIL user, incident assigned to ITIL users only should get open in the new tab from the incident table in the list view/ native view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Hello, normally you should be able to trigger the redirect from the available Visualization Clicked event (DOCS )
But since you mention using the native view, I was trying to use an external url concept on the Advanced Dashboard - Redirect event.
But, for some reason, this is actually not working for an external url, I am not sure why, maybe someone else can help here.
So I went for another solution just using a client script:
/**
* {params} params
* {api} params.api
* {any} params.event
* {any} params.imports
* {ApiHelpers} params.helpers
*/
function handler({
api,
event,
helpers,
imports
}) {
api.emit('NAV_ITEM_SELECTED', {
external: {
"url": event.payload.params.table + "_list.do?sysparm_query=" + event.payload.params.query,
"target": "_blank"
}
});
}
By triggering the navigation event from the client script, we can make it dynamic and use whatever url we want. So this is a generic way to do it.
(Do not leave the client script naming like what I did, it was just to answer your question, give it a meaningful name)
As a result when clicking on one of the bars we get here:
I hope this helps !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Diogo Ramos ,
Thank you for your response.
I cannot implement the first solution as the Advanced Dashboard redirect option is not available for me, since I am configuring it in Platform Analytics > Technical Editor.
I will try the second approach, i.e., using a Client Script. However, my question is: will it work for every column? For example, if I click on the ITIL user, the incidents assigned to that ITIL user should be visible in the list view. Similarly, if I click on David Loo, only the respective incidents should be visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Diogo Ramos ,
Thank you for your response.
I cannot implement the first solution as the Advanced Dashboard redirect option is not available for me, since I am configuring it in Platform Analytics > Technical Editor.
I will try the second approach, i.e., using a Client Script. However, my question is: will it work for every column? For example, if I click on the ITIL user, the incidents assigned to that ITIL user should be visible in the list view. Similarly, if I click on David Loo, only the respective incidents should be visible.
