UI Builder - How to go to list view/backend view after clikcing Pie Chart

aphansalkar
Tera Contributor

Hello,
I have a pie chart which has a Visualization Clicked - client script.
I am able to generate the proper backend url in the client script.

Ho do i execute that link?
Do I need another event like link to Destination?  if so, how to make it work?
or
Can I execute the url directly somehow in the client script?

const urls = `https://sn.service-now.com/incident_sla_list.do?sysparm_query=${encodedQuery}`;

This is the urls variable that has the correct value.
Can I pass this value to a client state parameter and then use the link to destination action and pass the client state parameter there?

 

2 REPLIES 2

Dibyaratnam
Kilo Patron

Yes you have to trigger this URL via the event handler Link to Destination or via api.emit("NAV_ITEM_SELECTED")

For reference check this https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1635275

aphansalkar
Tera Contributor

Hello Dibyaratnam,
Thanks for the reply.

I am able to open a new custom page within the experience with the queries of the pie chart, but still now sure how to directly open a url.

If I do link to destination - it doesn't allow me to do scripting, only binding or static value.
Can you please help with that too?