SugarCRM: Run Java Script from Custom logic hook

Posted Leave a commentPosted in SugarCRM

    <?php if(!defined(‘sugarEntry’) || !sugarEntry) die(‘Not A Valid Entry Point’); class idempiere_sync { function idempiere_sync(&$bean, $event, $arguments) { require_once(‘log4php/LoggerManager.php’); $JAVA_HOME = “/usr/lib/jvm/java-8-openjdk-amd64”; $PATH = “$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin”; putenv(“JAVA_HOME=$JAVA_HOME”); putenv(“PATH=$PATH”); $output = shell_exec(‘/home/Scripts/talend/iDempiere/SugarCRM/CRM_iDempiere/CRM_iDempiere_run.sh’); echo $output; } } ?>

SugarCRM: Delete Custom Field

Posted Leave a commentPosted in SugarCRM

You have to check for following things. 1) Remove custom field entry in table “fields_meta_data” 2) Remove field from module_name_cstm table 2) Remove file from custom/extension/modules/<Yourmodule>/Ext/Vardefs/sugarfield_<Field name>.php 3) Remove field from all the view if you have added any.   […]