You need to sign in to do that
Don't have an account?
Semira@gmail.com
Column header disappear when using repeat in PageblockTable
Hi all,
I'm trying to repeat bunch of rows in a pageblocktable. However I don't want my header to repeat, just the values. Right now, my headers doesn't show up at all!
How do I resolve this?
I'm trying to repeat bunch of rows in a pageblocktable. However I don't want my header to repeat, just the values. Right now, my headers doesn't show up at all!
How do I resolve this?
<apex:outputPanel id="table"> <apex:pageBlockTable value="{!LineItems}" var="item" columns="3"> <apex:repeat value="{!item}" var="m"> <apex:column ><apex:facet name="header">Materials</apex:facet> <apex:inputfield value="{!m.Description__c}"/> </apex:column> <apex:column ><apex:facet name="header">Ship</apex:facet> <apex:inputfield value="{!m.Quantity_Shipped__c}"/> </apex:column> </apex:repeat> </apex:pageBlockTable> </apex:outputPanel>
I guess repeat tag is not required inside PageBlockTable component.Please check that
All Answers
Instead of using <apex:pageBlockTable>, you can use <apex:dataTable>. Its because <apex:facet> component is supported under only specific parent components like <apex:dataTable>. So it can be like:
I guess repeat tag is not required inside PageBlockTable component.Please check that