
Originally Posted by
kamalesh2008
Hello all,
i want to know how data store in Sugarcrm bean object.......
for example:
when we create a contact in Contacts module , for that first we need to fill information and click on save.....at that point i want to know how$_POST array is processed and assigned to sugarCRM bean object.
please me help
Thank You,
Kamalesh dhayal
Everything is simple.
For example module Contacts
path to save file ../modules/Contacts/Save.php
PHP Code:
require_once('modules/Contacts/ContactFormBase.php');
$contactForm = new ContactFormBase();
$prefix = empty($_REQUEST['dup_checked']) ? '' : 'Contacts';
$contactForm->handleSave($prefix, true, false);
SugarCRM retrieve data from $_POST in function
populateFromPost($prefix, $focus);
Bookmarks