Hi there!
I need to change the contacts-to-opportunities relationship to one-to-one. How would I go about doing this? Please advise. thank you in advance.
Cheers!
Monica
Hi there!
I need to change the contacts-to-opportunities relationship to one-to-one. How would I go about doing this? Please advise. thank you in advance.
Cheers!
Monica
Hi monica you probably would need to change many fields to do this, isn't it easyer just to add the account's name on the detail view and remove the subpanel?
Priscila Kin Yamamoto Joranhezon
Phone: +55 61 32010000
priscila.joranhezon@nct.com.br
NCT Informática Ltda
the standard relationship between opportunities and contact I can find is the one in metadata/opportunities_contactsMetaData.php
I think you can override this in custom changing the relationship_type to "one-to-one"
Something like this:
In custom/Extension/modules/Opportunities/Ext/Vardefs/{name_you_want}.php
$dictionary["Opportunity"]["relationships"]['opportunities_contacts'] = array(
'lhs_module' => 'Opportunities',
'lhs_table' => 'opportunities',
'lhs_key' => 'id',
'rhs_module' => 'Contacts',
'rhs_table' => 'contacts',
'rhs_key' => 'id',
'relationship_type' =>'one-to-one'
);
Perhaps even could work only writing the line of relationship_type like this:
$dictionary["Opportunity"]["relationships"]['opportunities_contacts']['relationship_type'] = 'one-to-one';
Elisabeth Escribano
Webdeveloper
MADCAP verademing in ict
e.escribano@madcap.nl
Schapedrift 89
3371 JJ Hardinxveld-Giessendam
Netherlands
Tel 088 99 088 99
Fax 088 99 088 98
www.madcap.nl
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks