, 2.<apex:page standardController="Account" contenttype="application/vnd.ms-excel"> , 3.<apex:pageBlockTable value="{!account.Contacts}" var="contact"contenttype="application/vnd.ms-excel">">
MCQs > IT & Programming > Salesforce-Development > It displays the Name, Mailing City, Phone details of a particular contact. Which of the following modifications will enable the above VisualForce code to return the data as a Microsoft Excel sheet?

Salesforce-Development MCQs

The following is a VisualForce code snippet:

 <apex:page standardController="Account">

   <apex:pageBlock title="Contacts">

      <apex:pageBlockTable value="{!account.Contacts}" var="contact">

         <apex:column value="{!contact.Name}"/>

         <apex:column value="{!contact.MailingCity}"/>

         <apex:column value="{!contact.Phone}"/>

      </apex:pageBlockTable>

   </apex:pageBlock>

 </apex:page>


It displays the Name, Mailing City, Phone details of a particular contact. Which of the following modifications will enable the above VisualForce code to return the data as a Microsoft Excel sheet?

Answer

Correct Answer: <apex:page standardController="Account" contenttype="application/vnd.ms-excel"> 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Salesforce-Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Salesforce-Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it