how to link a UI action to a dashboard?

patricklatella
Mega Sage

hi community, 

is it possible to use a UI Action form button to link the user to a dashboard, and in the same window?

thanks!

1 ACCEPTED SOLUTION

Sure.

Please use below script

gs.setRedirect('/nav_to_do?uri=/$pa_dashboard.do?sysparm_dashboard=00701c67db6c1b803c6873e1ba9619ac');

and

personal preference for the user had to be set to "Dashboards" for their home page preference.

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

26 REPLIES 26

hi Sanjiv

so wondering...do I need to have "Client" unchecked?  

I tried those first two aain, and they did go to the dashboard, but in the frame.

______________________

This last one you sent:

gs.setRedirect('?uri=$pa_dashboard.do&sysparm_dashboard=00701c67db6c1b803c6873e1ba9619ac');

this one opened a new frame, expanded to the full screen like I want it to, but then just showed a blank white screen

 

find_real_file.png

 

For me the PA dashboard comes in this format. So i sent you the new link. Are you able to open you dashboard using below format?

 

https://xxxxxx.service-now.com/nav_to.do?uri=%2F$pa_dashboard.do%3Fsysparm_dashboard%3D02874c6d3b400300b90c4bb534efc4f1


Please mark this response as correct or helpful if it assisted you with your question.

here's my version of that format...unfortunately still brings up the full white screen...no dashboard.  it does direct to the full screen, but doesn't bring up dashboard.  see my screenshot below...any other issues maybe?

gs.setRedirect('https://xxxxxxxx.service-now.com/nav_to.do?uri=/$pa_dashboard.do%3Fsysparm_dashboard%00701c67db6c1b803c6873e1ba9619ac');

 

find_real_file.png

Can you try

 

gs.setRedirect('uri=/$pa_dashboard.do?//embedded=true&dashboard=00701c67db6c1b803c6873e1ba9619ac&tab=8eb09c67db6c1b803c6873e1ba9619c2%26sysparm_list_mode%3Dgrid');


Please mark this response as correct or helpful if it assisted you with your question.

Sorry. Try this

 

gs.setRedirect('uri=/$pa_dashboard.do?//embedded=true&dashboard=00701c67db6c1b803c6873e1ba9619ac&tab=8eb09c67db6c1b803c6873e1ba9619c2');


Please mark this response as correct or helpful if it assisted you with your question.