AnsweredAssumed Answered

Custom dashlet only for record view sugar 7.x

Question asked by Pawel Wasilewski on Dec 19, 2016
Latest reply on Dec 20, 2016 by sidhu sidhu

I created custom dashlet with ['filter']['view'] is set to 'record'. Why can I add dashlet to dashboards in Home module? Is this normal? 

$viewdefs['base']['view']['custom-dashlet-001'] = array(
    'dashlets' => array(
        array(
            'label' => 'LBL_CD_001_NAME',
            'description' => 'LBL_CD_001_DESC',
            'config' => array(

            ),
            'preview' => array(

            ),
            'filter' => array(
                'view' => array(
                    'record',
                )
            ),
        )
    ),
    //...

Outcomes