[148] Script to Maximize Visualization View

Script to Maximize Visualization View

Did you know that you can move or resize a control on your dashboard with a simple script? You might want to do this to give emphasis to certain visualizations or reduce the size of ones that are not important. You can add this script to the ‘on click event’ of any control, like a button to perform this action.

You can change the height/width as well as the top/left properties.

Here is the script to allow you to move controls around the dashboard and resize them programmatically.

table1.height = ??;
table1.width = ??;
table1.left = ??;
table1.top = ??;’

*replace table1 with the name of your control.

Be careful with View if you use a script like this to move and resize controls on a dashboard. Make sure your dashboard is Checked In or you are using Sandbox View as these sorts of changes via script are permanent otherwise. Changing these properties via script in View is the same as going over to the properties grid and making a change in Edit mode - the changes stick.

2 Likes