<?php
$module_name = 'prv_GestionePreventivi';
$viewdefs [$module_name] =
array (
'DetailView' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => 'EDIT',
1 => 'DUPLICATE',
2 => 'DELETE',
3 => 'FIND_DUPLICATES',
4 =>
array (
'customCode' => '<input type="button" class="button" onClick="showPopup(\'pdf\');" value="{$MOD.LBL_PRINT_AS_PDF}">',
),
5 =>
array (
'customCode' => '<input type="button" class="button" onClick="showPopup(\'emailpdf\');" value="{$MOD.LBL_EMAIL_PDF}">',
),
6 =>
array (
'customCode' => '<input type="button" class="button" onClick="showPopup(\'email\');return false;" value="{$MOD.LBL_EMAIL_QUOTE}">',
),
7 =>
array (
'customCode' => '<input />',
'sugar_html' =>
array (
'type' => 'submit',
'value' => 'Genera Preventivo Web',
'htmlOptions' =>
array (
'class' => 'button',
'id' => 'genera_preventivo_button',
'title' => 'Genera Preventivo Web',
'onclick' => 'window.location=\'index.php?module=prv_GestionePreventivi&action=generaPreventivo&record=\'',
'name' => 'genera_preventivo_button',
),
Hi guys how can I recover the id record when I call a custom action??
Thanks…