AnsweredAssumed Answered

Custom button in DetailView not visible

Question asked by jlabuelo on Nov 14, 2014
Latest reply on Nov 15, 2014 by jlabuelo
Hi there

 I am trying to create a new custom button on a custom module we have created in SugarCRM CE 6.5. 

This way worked fine for other modules, but dont know what is happening now as I am not able to see the button in the DetailView of the module.

This is the code I have included in the detailviewdefs.php in custom/MyModule/metadata

<?php$module_name = 'R2_Asignacion';
$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 title="{$APP.LBL_ASIGNAR_TITLE}" accessKey="{$APP.LBL_ASIGNAR_BUTTON_KEY} "type="button" 
         class="button" onClick="document.location=\'index.php?module=R2_Asignacion&action=Asignar&record={$}\'"name="asignar" value="{$APP.LBL_ASIGNAR_LBL}">',
      'maxColumns' => '2',
      'widths' => 

Then after saving it, I go to the Admin site of my SugarCRM and click on QuickRepair... everything seems to go fine, but as you can see in the screenshot... the button is not shown..

Any ideas why?