Create Custom EntryPoint

SugarCRM, SuiteCRM Navin Rakhonde
This blog post explains how to create custom entrypoint. Steps are as below, Step 1 : First of all create an file in \custom\include\MVC\Controller\entry_point_registry.php and add below code, <?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); require SUGAR_PATH . '/include/MVC/Controller/entry_point_registry.php'; $entry_point_registry['<entry_point_name>']=array('file' => 'custom/modules/<desired_module>/<any_name>.php', 'auth' => true); ?> Step 2 :…
Read More

Repair Rebuild using Code

SugarCRM, SuiteCRM Navin Rakhonde
It will be done by simple steps and steps are as below, Step 1 : First of all create an entryPoint in \custom\include\MVC\Controller\entry_point_registry.php and add below code, <?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); require SUGAR_PATH . '/include/MVC/Controller/entry_point_registry.php'; $entry_point_registry['<entry_point_name>']=array('file' => 'custom/modules/<desired_module>/<any_name>.php', 'auth' => true); ?> Step 2 : Create…
Read More

ADD Form Validation With Custom Message

SugarCRM, SuiteCRM Navin Rakhonde
It will be done by one step only! Lets do this, 1. Add a reference to the JavaScript file which will be needed for event binding. Path: custom/modules/<desired_module>/metadata/editviewdefs.php <?php $viewdefs['<desired_module>']['EditView']['templateMeta']['includes'] = array ( array ( 'file' => 'custom/modules/<desired_module>/js/editview.js', ), ); ?> 2. Add the JavaScript file you want to include into…
Read More