Custom subpanel row action

Hi . All

i want to custom sugarcrm 7.9 subpanel action row add link for generate or download subpanel to PDF format.

This is the screen looks like.

i want custom add the link download PDF in the action row edit and unlink, and when user click data in subpanel can download as PDF format . Actually i am just try to add action button top-panel following this link SugarCRM7 HOW TO:  Manipulate Subpanel Top Buttons (Actions)  but when i am override the subpanel top-panel is gone. 

any solution for my issue 

1. add subpanel row action for download PDF 

2. generate subpanel module data to PDF format 

thanks

regards Eka Indra

Francesca Shiekh Alex Nassi Madalina Papacica

rowaction sugar 7.9.0

Parents
  • Hello Eka Indra

    To add a new button you needs to do a customization of the supanel-list view metadata.

    1.- Copy the file clients/base/views/subpanel-list/subpanel-list.php into a custom file

    2.- Add the new option on 'actions' array key, like:

    ...
    'actions'=>array(

    ......

    array(

    'type' => 'rowaction',

    'icon' => 'fa-eye',

    'event' => 'list:pdfbtn:fire',

    'label' => 'LBL_PDF_BUTTON',

    ),

    )

    3.- Add the label LBL_PDF_BUTTON to language files.
    4.- To handle the click event on your custom option customize the controller file clients/base/views/subpanel-list/subpanel-list.js

    Example:

    How to add a custom action into subpanel row actions · GitHub 

    I hope help you, Regards.

Reply
  • Hello Eka Indra

    To add a new button you needs to do a customization of the supanel-list view metadata.

    1.- Copy the file clients/base/views/subpanel-list/subpanel-list.php into a custom file

    2.- Add the new option on 'actions' array key, like:

    ...
    'actions'=>array(

    ......

    array(

    'type' => 'rowaction',

    'icon' => 'fa-eye',

    'event' => 'list:pdfbtn:fire',

    'label' => 'LBL_PDF_BUTTON',

    ),

    )

    3.- Add the label LBL_PDF_BUTTON to language files.
    4.- To handle the click event on your custom option customize the controller file clients/base/views/subpanel-list/subpanel-list.js

    Example:

    How to add a custom action into subpanel row actions · GitHub 

    I hope help you, Regards.

Children
  • Hi Ceser,

    Thanks you for reply and your suggest is very help and now my issue number 1 is done and working fine .

    so you have any suggest for second issue which is to print or generate data table in subpanel to PDF format .

    i hope anybody and you Cesar Obed Gonzalez N. can help me 

    many thanks 

    regards Eka Indra