I'm using SugarCRM 5.0.0f for testing purposes on Windows XP machine with Apache. I'm new to SugarCRM and I'm not that used to use PHP because i made everything in the module builder except the relationship. For that I used the tutorial for a "1-to-Many Relationship" in the Wiki
I built a module that's similar to Contacts. There is a relation field, that's related to another custom module. And if you select a company from the other custom module, the address should inserted automatically like in Contacts, when you choose an Account.
I tried to Copy the Codepart from the editviewdefs.php from Contacts and changed it, so that it should work with my company selection.
Thats the Code part, already changed, in the editviewdefs.php in "\custom\modules\<Modulename>\metadata".Code:array ( 'name' => 'rel_exfirma_c', 'label' => 'LBL_REL_EXFIRMA', 'displayParams'=>array('key'=>'billing', 'copy'=>'primary', 'billingKey'=>'primary' ), ),
But it doesn't work and I don't know if i have to change other things as well.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks