How do I modify history dashlet from Meeting to Tasks in Account module ?

I create a custom dashlet, copy all history dashlet folder, put into custom folder, rename and rebuild.

My mycustom dashlet is showing and work.

I try to change Meeting into Tasks.

I change status to Task status, change module to Tasks and replace meetings with tasks.

But tasks is not showing. May be wrong variable.

What code that I should to replace in link ?

history.php

'tabs' => array(

        array(

            'active' => true,

            'filter_applied_to' => 'date_start',

            'filters' => array(

                'status' => array('$in' => array('status1', 'status2','status3')),

            ),

            'link' => 'tasks',

            'module' => 'Tasks',

            'order_by' => 'date_start:desc',

            'record_date' => 'date_start',

            'row_actions' => array(

                array(

                    'type' => 'unlink-action',

                    'icon' => 'icon-unlink',

                    'css_class' => 'btn btn-mini',

                    'event' => 'tabbed-dashlet:unlink-record:fire',

                    'target' => 'view',

                    'tooltip' => 'LBL_UNLINK_BUTTON',

                    'acl_action' => 'edit',

                ),

            ),

            'include_child_items' => true,

        ),

ask.PNG

SugarCRM Professional, Version 7.5.2.0

Thanks,

M

  • SOLVED !

    My code is correct but when I add a new task date_start has not been filled.

    I can't use date_start field to select data in Tasks module, so I use date_entered and it works !!.

    'tabs' => array(

            array(

                'active' => true,

                'filter_applied_to' => 'date_entered',

                'filters' => array(

                    'status' => array('$in' => array('status1', 'status2','status3')),

                ),

                'link' => 'tasks',

                'module' => 'Tasks',

                'order_by' => 'date_entered:desc',

                'record_date' => 'date_entered',

                'row_actions' => array(

                    array(

                        'type' => 'unlink-action',

                        'icon' => 'icon-unlink',

                        'css_class' => 'btn btn-mini',

                        'event' => 'tabbed-dashlet:unlink-record:fire',

                        'target' => 'view',

                        'tooltip' => 'LBL_UNLINK_BUTTON',

                        'acl_action' => 'edit',

                    ),

                ),

                'include_child_items' => true,

            ),