More than 6 columns per dashlet How do I upgrade safe

I found the google reference then the Suitecrm reference on how to increase column count per dashlet,

here, Google Search

and was pleased to find it work, but then frustrated as the upgrade wiped it away.

I see references to making the changes in a custom file to prevent that, but dont know how to do that. Any pointers ?

thanks

Larry

Please state precisely what you changed, and where, so that it works to your liking.

Then we can try to see if those customizations can be made upgrade-safe, and how. There are many different mechanisms to achieve this, and a generic answer is not possible…

Thanks pgr. There are two changes. One I can make upgrade safe, the other I can’t.

The upgrade safe one that works.
I changing the number of rows on a dashlet.

In the file /suitecrm/public/legacy/php.config

I modified the row as follows,

β€œ

β€˜dashlet_display_row_options’ =>
array (
0 => β€˜1’,
1 => β€˜3’,
2 => β€˜5’,
3 => β€˜10’,
4 => β€˜30’,

β€œ

then saved the file in

/suitecrm/public/legacy/custom/php.config This works just fine.

The Upgrade safe modication that does not work, and is not upgrade safe, and I cant figure out why.

I changed the number of fields ( Columns) in a dashlet.

In the file /legacy/include/Dashlets/DashletGeneric.php

I modified the row as follows

β€œ

$chooser->args[β€˜max_left’] = β€˜6’;

$chooser->args[β€˜max_left’] = β€˜10’;

β€œ

then saved the file in

/legacy/custom/include/Dashlets/DashletGeneric.php

I reload Suitecrm, did a quick repair ( no effect).
Changing the number of rows stuck through an update, changing the number of fields had a more complicated result. The dashlets that had their # of fields previously increased stayed the same through the update. those dashlets that had not been modified, were unable to be increased.

I would really like to be able to modify numbers of rows, up to say 10, .

Thanks.

Okay for number 1. I am going to assume you mean config.php file (in public/legacy), all overrides for this go in public/legacy/config_override.php.

In config_override.php you will find a comment start/end for configurator, OUTSIDE of those comments add in:

$sugar_config['dashlet_display_row_options']=[’1’,’3’,’5’,’10’,’30’];

for upgrade safe override of this one.

Number 2 can’t be made upgrade safe currently as all Dashlets include an exact reference to the DashletGeneric.php file

Regards

Mark

1 Like

Gotcha. Thanks for the info…