Re: how to update data base

Originally Posted by
souza Thanks,
I am using windows and mysql data base, I thing I don’t need use SQLYog, because I have mysql database work and what I need is when I create a new contact I need know How I do to put sugar creating a value for a field in my table contacts_.cstm, but in these field the user don’t write anything sugar must update de field automatically, so please tell me where I need put the query to update my field
Hi!
You have to change the file "modules/Contacts/ContactFormBase.php"
there you can update function handleSave
you have to put your code before function save(
BTW: if you need auto incremented field you just have to alter your table field to auto increment.
Hope it will help you
Petro Blagodir
petro@blagodir.ua
http://www.blagodir.com
Blagodir Ltd.( SugarCRM - Consultations, Development and Support)
Bookmarks