AnsweredAssumed Answered

Adding Button to Record View

Question asked by JonesSmith on Sep 22, 2017
Latest reply on Sep 26, 2017 by André Lopes

Hi fellow Sugar members,

 

I am following this guide:

 

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/User_Interface/Views/Adding_Buttons_… 

 

I have all the directories in the correct places.

I am using 7.5

I had no manifest.php so I can to create one for Module Loader to work.

I reached 70% but it stopped.

 

It had - Installing LayoutDefs,  .... Installing Relationships. (Error Log message)

 

I would love to do this from the back-end side of the directory but I do not have access. So I have two questions

 

1) If I have back-end side, and manually added these (following the document) and did a quick fix and repair. I assume it will work.

 

2) If I do not have a back-end side, I had to go through Save & Deploy to save any files so I can go to Diagnostic tools to download these files path. If not, I had to create them.

 

manifest.php

<?php

$manifest = array(
'acceptable_sugar_flavors' => array('PRO','ENT','ULT'),
'acceptable_sugar_versions' => array(
'exact_matches' => array(),
'regex_matches' => array('7\\..*$'),
),
'author' => '',
'name' => 'Additional checks',
'description' => 'Additional checks',
'is_uninstallable' => true,
'type' => 'module',
'version' => 1.0,
);


$installdefs = array(

'id' => 'Aditional',
'beans' => array(),
'layoutdefs' => array(),
'relationships' => array(),
'copy' => array(
array(
'from' => '<basepath>/Files/custom',
'to' => 'custom',
),
),
'post_execute' => array(
'<basepath>/scripts/cleanup.php',
),
'post_uninstall' => array(
'<basepath>/scripts/cleanup.php',
),
);

?>

 

 

All the codes are the same as mentioned in the documentations. What appears to be the problem? Is the document referring I cannot do it in an admin approach? 

Outcomes