Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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.

3 REPLIES 3

Diogo Ramos
Tera 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 !

 







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.

ajaybadukal7184
Tera Contributor

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.