hello everyone,
i study about logic hook but i implement after_save and before_save but i can't understand exactly what use of logic hook................and if you know brief of logic hook pls guide me............
hello everyone,
i study about logic hook but i implement after_save and before_save but i can't understand exactly what use of logic hook................and if you know brief of logic hook pls guide me............
if you need to change value of some field, something like calculated field, e.g., rate per day(10) * number of days(10) = cost (100), the basic example, you can achieve this by logic hook(apart from javascript).
in this case you will use, before save, because after the calculation you need to save the value into database.
for after save, example would be, you want to send a notification to some user..
the sugarcrm developer guide says
hope this helps.Custom Logic (or "Business Logic Hooks") allows you to add functionality to certain actions, such as before saving a bean, in an upgrade-safe manner. This is accomplished by defining hooks, which are placed in the custom/ directory, which will be called in the SugarBean in response to events at runtime.
Because the code is located separate from the core SugarCRM code, it is upgrade-safe.
Best Regards
---------------------------------------
Heta Shah - iNET PROCESS
heta.shah@inetprocess.com
http://www.inetprocess.co.in
Projects :
iNETDocs -Project of the month(Dec-2008)
iNETGoogleMap
hi heta,
thanks for guiding me..................i hope this will help me in future
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks