Skip to main content
Hi,

 

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;">

 

                Email

 

            </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
0/9000