You need to sign in to do that
Don't have an account?

Table not appearing in VFPage
This table is not appearing when I render the vfpage. What do I need to change in my vf page?
<apex:page standardcontroller="PCN_s__c" extensions="pcntable" > <apex:form > <apex:pageBlock > <apex:repeat value="{!pcnlist}" var="pcn" > <table> <tr> <td> <apex:outputlabel value="Project Impact"/> </td> <td> <apex:outputlabel value="Current Project"/> </td> <td> <apex:outputlabel value="Revised Project"/> </td> <td> <apex:outputlabel value="Change"/> </td> <td> <apex:outputlabel value="Approved"/> </td> </tr> <tr> <td> <apex:outputlabel value="PROD. LABOR HOURS & COST:"/> </td> <td> <apex:inputfield value="{!pcn.Current_PROD_LABOR_HOURS__c}"/> <apex:inputfield value="{!pcn.Current_PROD_LABOR_COST__c}"/> </td> <td> <apex:inputfield value="{!pcn.Revised_PROD_LABOR_HOURS__c}"/> <apex:inputfield value="{!pcn.Revised_PROD_LABOR_COST__c}"/> </td> </tr> <tr> <td> <apex:outputlabel value="ENG. LABOR HOURS & COST:"/> </td> <td> <apex:inputfield value="{!pcn.Current_ENG_LABOR_HOURS__c}"/> <apex:inputfield value="{!pcn.Current_ENG_LABOR_COST__c}"/> </td> <td> <apex:inputfield value="{!pcn.Revised_ENG_LABOR_HOURS__c}"/> <apex:inputfield value="{!pcn.Revised_ENG_LABOR_COST__c}"/> </td> </tr> <tr> <td> <apex:outputlabel value="MATERIAL COST:"/> </td> <td> <apex:inputfield value="{!pcn.Current_MATERIAL_COST__c}"/> </td> <td> <apex:inputfield value="{!pcn.Revised_MATERIAL_COST__c}"/> </td> </tr> <tr> <td> <apex:outputlabel value="PRINT RELEASE DATE:"/> </td> <td> <apex:inputfield value="{!pcn.Current_PRINT_RELEASE_DATE__c}"/> </td> <td> <apex:inputfield value="{!pcn.Revised_PRINT_RELEASE_DATE__c}"/> </td> </tr> <tr> <td> <apex:outputlabel value="SCHED. SHIP DATE:"/> </td> <td> <apex:inputfield value="{!pcn.Current_SCHED_SHIP_DATE__c}"/> </td> <td> <apex:inputfield value="{!pcn.Revised_SCHED_SHIP_DATE__c}"/> </td> </tr> <tr> <td> <apex:outputlabel value="ADDITIONAL COMPONENTS:"/> </td> <td> <apex:inputfield value="{!pcn.Current_ADDITIONAL_COMPONENTS__c}"/> </td> <td> <apex:inputfield value="{!pcn.Revised_ADDITIONAL_COMPONENTS__c}"/> </td> </tr> <tr> <td> <apex:outputlabel value="TOTAL COST:"/> </td> <td> <apex:inputfield value="{!pcn.Current_TOTAL_COST__c}"/> </td> <td> <apex:inputfield value="{!pcn.Revised_TOTAL_COST__c}"/> </td> </tr> <tr> <td> <apex:outputlabel value="SELLING PRICE:"/> </td> <td> <apex:inputfield value="{!pcn.Current_SELLING_PRICE__c}"/> </td> <td> <apex:inputfield value="{!pcn.RevisedSELLING_PRICE__c}"/> </td> </tr> </table> </apex:repeat> </apex:pageBlock> </apex:form> </apex:page>
I have solved this problem with the change below:
All Answers
Try using apex:pageBlockTable tag.
I tried the pageblocktable tag and it did not work.
Are You sure that variable PCNLIST is properly set? Maybe it is simply empty?
<apex:pageBlockTable value="{!accwrapperlist}" var="accwr" id="AccTable">
<apex:column >
<apex:facet name="header">
<apex:inputCheckbox >
<apex:actionSupport event="onclick" onsubmit="checkAll(this)" reRender=""/>
</apex:inputCheckbox>
</apex:facet>
<apex:inputCheckBox value="{!accwr.isSelected}" id="testchk"/>
</apex:column>
<apex:column headerValue="Account ID" width="45%">
{!accwr.acc1.Id}
</apex:column>
<apex:column headerValue="Account Name" width="25%">
{!accwr.acc1.Name}
</apex:column>
</apex:pageBlockTable>
PJaya,
Thank you for the sample code, but this is not thte type of table I am looking for. Rather than a table of multiple records, I need a table of multiple fields for one records. Example:
Column A is the category of costs for one record. column two is the existing cost for each category, column c is the cost changes, and column d is cost variance for eacch record.
Each cell in the table above is an individual field on a single record.
Thanks
IF possible can you paste the controller class?
Here is my apex class:
Thanks
hope above apex class /contoller helps u
try this... let me know if it doesnt work.
This is not working. I think it is because I am trying to add a new record rather than editing a record.
I have solved this problem with the change below: