AnsweredAssumed Answered

Custom dashlet Auto Refresh not work

Question asked by Autchara Chaiprom on Aug 23, 2016
Latest reply on Aug 23, 2016 by Autchara Chaiprom

Hi,

 

I try to put config to my custom dashlet but not working no Auto Refresh drop down appear.

I copy some part of code from activitystream-dashlet that can set config Auto refresh. 

Look like this:

 

How can I fix or I missing something?

My code below

 

$viewdefs['base']['view']['custom-mydashlet'] = array(
    'dashlets' => array(
        array(
            'label' => 'Hello World',
            'description' => 'Bla bla bla',
            'config' => array(
            ),
            'preview' => array(
            ),
            'filter' => array(
            )
        ),
    ),
    'config' => array(
        'fields' => array(
            array(
                'name' => 'auto_refresh',
                'label' => 'LBL_REPORT_AUTO_REFRESH',
                'type' => 'enum',
                'options' => 'sugar7_dashlet_auto_refresh_options',
            ),
        ),
    ),
);

 

Sugar 7.6 Ent

Thanks,

M

Outcomes