
I have written on VF Page to show Opportunity Contact Role additional Field in related list. This is working fine. I am stuck in adding manage contact Role button on this VF page so that we can add remove contacts.
<apex:page standardController="Opportunity">
<table width="100%" style="font-family: Arial, Helvetica, sans-serif; border-collapse: collapse;"
cellpadding="5">
<tr>
<td colspan="6" style="font-weight: bold; border-bottom-style: solid; border-bottom-width: thick;
border-bottom-color: #.ddb929;">
Opportunity Contact Roles
</td>
</tr>
<tr>
<td style="font-weight: bold; background-color: #.FFFFCC;">
Contact Name
</td>
<td style="font-weight: bold; background-color: #.FFFFCC;">
Account Name
</td>
<td style="font-weight: bold; background-color: #.FFFFCC;">
</td>
<td style="font-weight: bold; background-color: #.FFFFCC;">
Phone
</td>
<td style="font-weight: bold; background-color: #.FFFFCC;">
Role
</td>
<td style="font-weight: bold; background-color: #.FFFFCC;">
Is Primary
</td>
</tr>
<apex:repeat value="{!Opportunity.OpportunityContactRoles}" var="role">
<tr id="{!role.Id}">
<td>
{!role.Contact.Name}
</td>
<td>
{!role.Contact.Account.Name}
</td>
<td>
{!role.Contact.Email}
</td>
<td>
{!role.Contact.Phone}
</td>
<td>
{!role.role}
</td>
<td>
{!role.IsPrimary}
</td>
</tr>
</apex:repeat>
</table>
</apex:page>
1 risposta
Hi Disha,
Sorry for the inconvenience. In case you don't receive a response here, may I also suggest joining the Developer forums below to collaborate with the experts for best practice and advice.
https://developer.salesforce.com/forums
https://salesforce.stackexchange.com/
Thanks!