Did somebody get a solution on displaying the contact role starting from the contact detail view and looking to the opportunity subpanel or something similar?
I tried what suggested by PStevens (turning opportunity role field studio to ātrueā, in varfed.php). I could see the opportunity role but once added the field to the edit or detail or contact list view I could select an option from the role menu, but once save it did not display anything I selected (always blank).
You donāt need to do anything. Simply go to the Opportunity, In the subpanel for ācontactsā just add one. Then once itās added click on the āeditā button and you should be able to edit the contact opportunity role.
@mariofucile OK I see what youāre saying. You must be talking about SuiteCRM 8. This feature appears to be missing. When I click on the contact in the Opportunity subpanel in 8 it just goes to edit the record and not the opportunity role page. You canāt just show a single relate field in the contact as this is a many to many relationship. I donāt think youāre going to be able to edit that in 8 without this feature being added.
Sorry I missed to mention my SuiteCRM version which is the 7.12.5.
Apart from that, I was already ok with selecting the āRoleā from the āContactā subpanel present in the āOpportunityā detail view. No problem for that.
My question, was intended to have the same information (āRoleā) at the opposite, I mean displaying
the āRoleā in the Opportunities subpanel starting from a Contact detail view.
As described in studio the āopportunity_roleā is not present in the list selecting the Opportunities
subpanel of the Contact, unless I turn the opportunity_roles fields to ātrueā in the vardef.php file.
After that it appears, I can select it, I see it in the opportunity subpanel of the contact, but it is useless,
even if you select one of the role menu option, keep remaining blank.
So youāre wanting to show the āopportunity roleā in the contact record side, in the Opportunity subpanel? I donāt think that would be possible (at least not without writing code). The opportunity subpanel shows fields from the Opportunity. The āOpportunity Roleā is a contact record as I understand it. There is a third table in the database (because itās a many to many relationship). Youād have to write some custom code to go and get that relationship from the database table.
After reading this old post I just asked if somebody had a way to have the role info in the opportunities subpanel shown from the contact details view. From what you say I do understand it is too difficult.
Thanks anyway for your kind reply and have a good day.
Mario
Hi Mario, are you ok to fill the Opportunities Role with any Contact field?
Itās related to your specific scenario.
Usually a Contact could be the decision maker in one Opportunity and a simple āinfluencerā in another one.
If it works for you, iād put an after_relationship_add LogicHook in the Contacts module to achieve it
Starting from your point, that is the same contact can have different roles for different opportunities is involved in, why not displaying the contact role in the opportunities listed from the subpanel present in the contact detail view. The same role displayed listing the subpanel contacts from the opportunity detail view.
Here you find my draft. I putted a partial details view of both an opportunity and a related contact. Added also some notes to understand what I would like to have.