one page block table show data multipule objects how to write? not only contact contact object contact name Account object Account name,Amountfield opportunity object Opportunity name
sry boss it is not correct ,i am asking just names display in colum header contactname accountname account amount opportunityname can you plz write a table
Below Snippet would render a pageBlock Table.
For more details:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_iteration_components.htm
Mark this as your best answer if this resolves your query.
Regards,
Avishek Nanda
contact object contact name
Account object Account name,Amountfield
opportunity object Opportunity name
You need to use Wrapper class to store the details. and Use table inside table to show the details.
Regards,
Avishek
contactname
accountname
account amount
opportunityname
can you plz write a table
<apex:page standardController="Account">
<apex:pageBlock title="Hello {!$User.FirstName}!">
You are viewing the {!account.name} account.
</apex:pageBlock>
<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>
that is correct but you have only take one object i want multipule object data