0

I am using pageBlockTable to create a table that displays the output of fields entered on a previous Visualforce page.

The table will not display past the column headers. Perhaps pageBlockTable should not be used for this? Please see image below.

enter image description here

Visualforce Code:

             <apex:pageBlockTable value="{!Prospect_Profile__c}" var="pp">
                  <apex:column headerValue="Bank Relationship"/>
                      <apex:outputField value="Loans: "/>
                      <apex:outputField value="Depository: "/>
                      <apex:outputField value="Treasury Mgmt: "/>
                      <apex:outputField value="International Services: "/>
                      <apex:outputField value="Mortgage: "/>
                  <apex:column headerValue="Current Provider"/>
                      <apex:outputField value="pp.CurPro_Loans__c"/>
                      <apex:outputField value="pp.CurPro_Depository__c"/>
                      <apex:outputField value="pp.CurPro_Treasury_Mgmt__c"/>
                      <apex:outputField value="pp.CurPro_International_Services__c"/>
                      <apex:outputField value="pp.CurPro_Mortgage__c"/>
                  <apex:column headerValue="Other Providers"/>
                      <apex:outputField value="pp.OthPro_Loans__c"/>
                      <apex:outputField value="pp.OthPro_Depository__c"/>
                      <apex:outputField value="pp.OthPro_Treasury_Mgmt__c"/>
                      <apex:outputField value="pp.OthPro_International_Services__c"/>
                      <apex:outputField value="pp.OthPro_Mortgage__c"/>
             </apex:pageBlockTable>

1 Answer 1

1

You need to wrap inside <apex:column>

           <apex:pageBlockTable value="{!Prospect_Profile__c}" var="pp">
              <apex:column headerValue="Bank Relationship">
                  <apex:outputField value="Loans: "/>
                  <apex:outputField value="Depository: "/>
                  <apex:outputField value="Treasury Mgmt: "/>
                  <apex:outputField value="International Services: "/>
                  <apex:outputField value="Mortgage: "/>
              </apex:column>
              <apex:column headerValue="Current Provider">
                  <apex:outputField value="pp.CurPro_Loans__c"/>
                  <apex:outputField value="pp.CurPro_Depository__c"/>
                  <apex:outputField value="pp.CurPro_Treasury_Mgmt__c"/>
                  <apex:outputField value="pp.CurPro_International_Services__c"/>
                  <apex:outputField value="pp.CurPro_Mortgage__c"/>
              </apex:column>
              <apex:column headerValue="Other Providers">
                  <apex:outputField value="pp.OthPro_Loans__c"/>
                  <apex:outputField value="pp.OthPro_Depository__c"/>
                  <apex:outputField value="pp.OthPro_Treasury_Mgmt__c"/>
                  <apex:outputField value="pp.OthPro_International_Services__c"/>
                  <apex:outputField value="pp.OthPro_Mortgage__c"/>
              </apex:column>
         </apex:pageBlockTable>
3
  • 1
    Ratan you are a legend! Commented Jan 7, 2016 at 15:40
  • Hold up mistake on my end, everything is working now. Thanks again Ratan! Commented Jan 7, 2016 at 15:44
  • @Mercury86 add you updated code in question let me check
    – Ratan Paul
    Commented Jan 7, 2016 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .