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

Yes. Thats odd. Is it the same for other dashboards as well?


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

I figured out what it's going, it's linking to whatever page I have set as my "homepage"...my Home link (see screenshot)

 

find_real_file.png

 

but when I try to set my homepage to my desired dashboard, it's not a selection I can make...is there a way to set my dashboard as my "home" page?

find_real_file.png

 

ok I figured something out.  In my personal settings (see below), I had my "Home" set to Homepages.  After I changed it to "Dashboards", this script worked!

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

 

I wonder though if you know a way to override the user's setting here so that it always goes to the specified dashboard?

 

find_real_file.png

Hi Sanjiv,

wanted to follow up that this solution worked for this requirement...if you want to copy and paste, and then reply again I'll mark your answer correct.

Script was

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

 

thanks as always for your help!  Patrick

 

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.