I’m looking to add a generate letter button to a custom module, I have been following this post here
I have followed it as best as i can, i have gotten the button to show, I have disabled AJAX now however i am stuck with the view.detail.php, my module doesn’t have a view.detail.php so as someone advised i take it from the contacts or leads and change the values to suit my own, which I think I have done, however it doesn’t seem to work, nothing happens at all. here is the code from the view.detail.php
<?php
class CustomPDL_GroanViewDetail extends ViewDetail{
public function display(){
global $sugar_config;
require_once('modules/AOS_PDF_Templates/formLetter.php');
formLetter::DVPopupHtml('PDL_Groan');
parent::display();
}
}
?>
Suite! we got that working PGR, I am a little annoyed i couldn’t find that little bit myself, as you said about what you found in the leads, i did copy the view.detail.php from the leads and modify it for PDL_Groan as some in that thread suggested, but i got a white screen, which probably way php as you suggested in the other thread, now to go work on that one.