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

SanjivMeher
Kilo Patron
Kilo Patron

Yes. I think it should be possible,

 

Try gs.setRedirect('dashboard link');


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

Hi Sanjiv,

yes I've tried that...only issue is that I'm using the "split" list view for a specific set of users...and when you hit the form button it does link to the dashboard with that script, but it puts it in the frame where the form view is and keeps the split view of records on the left...what I'd like is for the dashboard to take up the whole window...not show in the list view frame.

Is it possible to have the link leave the split view so it just shows like the bottom screen shot?

find_real_file.png

 

find_real_file.png

Can you also append the link with %26sysparm_list_mode%3Dgrid or &sysparm_list_mode=grid and try


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

so like this?

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

 

do I need an edit?  this doesn't link to anything