Hi Sorry if these are dumb questions. Its 1 in the morning (been up since 5am yesterday) and been bashing my head with them. Havent been able to find a answer in older posts
1) Due to buisness rules we wanted to change primary_address_state from a text field to a drop down. Did that by hand by adding the code to utils.php and EditView.php and then manually changing EditView.html to use <select ....> We then later added a custom field to the module and it overwrote the changes we made to EditView.html not really suprised. HOwever is there a way to prevent this? Or what would've been the correct way to make the change.
2) As from my other thread we need to send an email when a record is INSERTED with specific parameters to the person the record describes. (ie adding an new employee and sending a welcome letter to that employee). I understand this has to be custom code.
I have been able to trap the system in a location where I should be able to send the email as well have found a post on what I would need to do to send an email here: http://www.sugarcrm.com/forums/showt...light=workflow
HOWEVER I cannot tell if we are in an UPDATE or INSERT path. We really only can have the email going when its an INSERT.
Incase I'm totally off here what I'm trying to do so far.
Inside of Module.php I've addeed
THanks for any helpPHP Code:function call_custom_logic($event, $arguments = null)
{
if(mychecks)
sendEmail();
SugarBean::call_custom_logic($event,$arguments);
}
I'm off to bed
![]()


LinkBack URL
About LinkBacks
I'm off to bed




Reply With Quote
Bookmarks