configure in technical editor, if I click on any column, navigate to respective lists in native view

ajaybadukal7184
Tera Contributor

ajaybadukal7184_0-1767592748210.png

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.

1 REPLY 1

Diogo Ramos
Giga Sage
Giga Sage

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.

DiogoRamos_0-1767648330227.png

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.

DiogoRamos_3-1767649154178.png

(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: 

DiogoRamos_2-1767649048089.png

I hope this helps !