Getting Started Developing for SugarCloud

I'm trying to add an extra button into a listview header that will prepopulate a value in a dropdown list.

I understand I need to extend the list-headerpane folder for the module, and add the button in list-headerpane.php by extending it to custom folder "custom/modules/<module_name>/clients/base/views/list-headerpane/list-headerpane.php (although I assume this would just add the button, and I'd need to extend list-headerpane.js to add the functionality)

However, despite having read the Sugar 10.2 Developer Guide (https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.2) and the dev tutorials (https://sugarclub.sugarcrm.com/dev-club/w/dev-tutorials/) I'm still none the wiser on how to actually view and extend list-headerpane.php, and package it so it can be deployed to our development and integration environments.

Is there a beginners tutorial that covers this?

Parents
  • I've not done this myself and I'm not sure I understand what you are looking for, but to add a button in the list-headerpane in a given module I would edit the file you mentioned and add your button to the button array as follows

    custom/modules/<module_name>/clients/base/views/list-headerpane/list-headerpane.php

    $viewdefs['<module>']['base']['view']['list-headerpane']['buttons'][] =

            array(

                'name' => 'your_button_name',

                'type' => 'your_button_type',

            );

     

Reply
  • I've not done this myself and I'm not sure I understand what you are looking for, but to add a button in the list-headerpane in a given module I would edit the file you mentioned and add your button to the button array as follows

    custom/modules/<module_name>/clients/base/views/list-headerpane/list-headerpane.php

    $viewdefs['<module>']['base']['view']['list-headerpane']['buttons'][] =

            array(

                'name' => 'your_button_name',

                'type' => 'your_button_type',

            );

     

Children