Hello!
I want to be able to add in a button to print a custom module into a pdf. But in the detailviewdefs.php file, the button array is not there. Where can I find it to add another button to this custom module?
This is what the file looks like. I am running Suitecrm Version 7.11.13.
<?php
$module_name = 'samre_Sample_Request_Page';
$_object_name = 'samre_sample_request_page';
$viewdefs [$module_name] =
array (
'DetailView' =>
array (
'templateMeta' =>
array (
'maxColumns' => '2',
'form' =>
array (
),
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
'useTabs' => false,
'tabDefs' =>
array (
'DEFAULT' =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
),
'LBL_EDITVIEW_PANEL1' =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
),
'LBL_EDITVIEW_PANEL7' =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
),
'LBL_EDITVIEW_PANEL4' =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
),
),
'syncDetailEditViews' => true,
),
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 =>
array (
'name' => 'document_name',
'label' => 'LBL_NAME',
),
1 =>
array (
'name' => 'shipping_type',
'studio' => 'visible',
'label' => 'LBL_SHIPPING_TYPE',
),
),
),
'lbl_editview_panel1' =>
array (
0 =>
array (
0 =>
array (
'name' => 'parent_name',
'studio' => 'visible',
'label' => 'LBL_FLEX_RELATE',
),
1 =>
array (
'name' => 'attention_to',
'label' => 'LBL_ATTENTION_TO',
),
),
1 =>
array (
0 =>
array (
'name' => 'address',
'label' => 'LBL_ADDRESS',
),
1 => '',
),
2 =>
array (
0 =>
array (
'name' => 'address_city',
'label' => 'LBL_ADDRESS_CITY',
),
1 =>
array (
'name' => 'address_postalcode',
'label' => 'LBL_ADDRESS_POSTALCODE',
),
),
3 =>
array (
0 =>
array (
'name' => 'address_state',
'label' => 'LBL_ADDRESS_STATE',
),
1 =>
array (
'name' => 'address_country',
'label' => 'LBL_ADDRESS_COUNTRY',
),
),
),
'lbl_editview_panel7' =>
array (
0 =>
array (
0 =>
array (
'name' => 'product_one',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_ONE',
),
1 =>
array (
'name' => 'pack_size_one',
'label' => 'LBL_PACK_SIZE_ONE',
),
),
1 =>
array (
0 =>
array (
'name' => 'product_two',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_TWO',
),
1 =>
array (
'name' => 'pack_size_two',
'label' => 'LBL_PACK_SIZE_TWO',
),
),
2 =>
array (
0 =>
array (
'name' => 'product_three',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_THREE',
),
1 =>
array (
'name' => 'pack_size_three',
'label' => 'LBL_PACK_SIZE_THREE',
),
),
3 =>
array (
0 =>
array (
'name' => 'product_four',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_FOUR',
),
1 =>
array (
'name' => 'pack_size_four',
'label' => 'LBL_PACK_SIZE_FOUR',
),
),
4 =>
array (
0 =>
array (
'name' => 'product_five',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_FIVE',
),
1 =>
array (
'name' => 'pack_size_five',
'label' => 'LBL_PACK_SIZE_FIVE',
),
),
5 =>
array (
0 =>
array (
'name' => 'product_six',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_SIX',
),
1 =>
array (
'name' => 'pack_size_six',
'label' => 'LBL_PACK_SIZE_SIX',
),
),
6 =>
array (
0 =>
array (
'name' => 'product_seven',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_SEVEN',
),
1 =>
array (
'name' => 'pack_size_seven',
'label' => 'LBL_PACK_SIZE_SEVEN',
),
),
7 =>
array (
0 =>
array (
'name' => 'product_eight',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_EIGHT',
),
1 =>
array (
'name' => 'pack_size_eight',
'label' => 'LBL_PACK_SIZE_EIGHT',
),
),
8 =>
array (
0 =>
array (
'name' => 'product_nine',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_NINE',
),
1 =>
array (
'name' => 'pack_size_nine',
'label' => 'LBL_PACK_SIZE_NINE',
),
),
9 =>
array (
0 =>
array (
'name' => 'product_ten',
'studio' => 'visible',
'label' => 'LBL_PRODUCT_TEN',
),
1 =>
array (
'name' => 'pack_size_ten',
'label' => 'LBL_PACK_SIZE_TEN',
),
),
),
'lbl_editview_panel4' =>
array (
0 =>
array (
0 =>
array (
'name' => 'potential_volume',
'label' => 'LBL_POTENTIAL_VOLUME',
),
1 =>
array (
'name' => 'shipped_via',
'label' => 'LBL_SHIPPED_VIA',
),
),
1 =>
array (
0 =>
array (
'name' => 'notes',
'studio' => 'visible',
'label' => 'LBL_NOTES',
),
),
),
),
),
);
;
?>