Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
Please tell me how to create a custom table with 10 columns.
Thanks
Anu
<apex:reapeat> can be used when you have a List of object and want to craete a custom table from it
Ex:
<table>
<apex:repeat value="{!accounts}" var="item">
<tr>
<td>
<apex:outputField value="{!item.name}"/>
</td>
</tr>
</apex:repeat>
</table>
Here accounts is a list of objects
you can use simply HTML or use <apex:repeat> tag.
Hi Balwant
Can u tell me how to use it .
In HTML you can use
<tr><td>your content</td></tr>
</table>
and in visualforce you can do it as
<apex:pageBlockTable value="{!wrapList}" var="aa">
<apex:column headerValue="ColumnHeaderName" value="{!aa.valueincustomobject_c}" />
</apex:pageBlockTable>
where "{!wrapList}" is corresponding to list in controller class contains value of table which you want to print.
Hi
No, I want to know how to use <apex:repeat>.
thanks
but why not use apex:datatable or apex:pageblocktable and apex:column to do the work?
<apex:reapeat> can be used when you have a List of object and want to craete a custom table from it
Ex:
<table>
<apex:repeat value="{!accounts}" var="item">
<tr>
<td>
<apex:outputField value="{!item.name}"/>
</td>
</tr>
</apex:repeat>
</table>
Here accounts is a list of objects
All Answers
you can use simply HTML or use <apex:repeat> tag.
Hi Balwant
Can u tell me how to use it .
Thanks
Anu
In HTML you can use
<table>
<tr><td>your content</td></tr>
</table>
and in visualforce you can do it as
<apex:pageBlockTable value="{!wrapList}" var="aa">
<apex:column headerValue="ColumnHeaderName" value="{!aa.valueincustomobject_c}" />
</apex:pageBlockTable>
where "{!wrapList}" is corresponding to list in controller class contains value of table which you want to print.
Hi
No, I want to know how to use <apex:repeat>.
thanks
Anu
<apex:reapeat> can be used when you have a List of object and want to craete a custom table from it
Ex:
<table>
<apex:repeat value="{!accounts}" var="item">
<tr>
<td>
<apex:outputField value="{!item.name}"/>
</td>
</tr>
</apex:repeat>
</table>
Here accounts is a list of objects
but why not use apex:datatable or apex:pageblocktable and apex:column to do the work?