You need to sign in to do that
Don't have an account?
Vijay sidaraddi
not able to save apex class
HI friends,
Suggest me wherer im wrong in this apex class
public with sharing class Pdfcontroller {
{ public List assList{get;set;}
public Pdfcontroller (){
assList = [select assignmentnumber,AFE,inspectionlevel,ProjectName,status from assignmentpackage limit 10];
}
}
***************Vf page*******************
<apex:page controller="PdfController" renderAs="pdf">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!assList}" var="ass" border="2">
<apex:column value="{!ass.assignmentnumber}"/>
<apex:column value="{!ass.AFE}"/>
<apex:column value="{!ass.inspectionlevel}"/>
<apex:column value="{!ass.ProjectName}"/>
<apex:column value="{!ass.status}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Suggest me wherer im wrong in this apex class
public with sharing class Pdfcontroller {
{ public List assList{get;set;}
public Pdfcontroller (){
assList = [select assignmentnumber,AFE,inspectionlevel,ProjectName,status from assignmentpackage limit 10];
}
}
***************Vf page*******************
<apex:page controller="PdfController" renderAs="pdf">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!assList}" var="ass" border="2">
<apex:column value="{!ass.assignmentnumber}"/>
<apex:column value="{!ass.AFE}"/>
<apex:column value="{!ass.inspectionlevel}"/>
<apex:column value="{!ass.ProjectName}"/>
<apex:column value="{!ass.status}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Assuming as you are referring to a custom object and custom fields please update your code as below
Controller:
VF Page;
Please mark this as best answer if the information helps.
Best Regards,
Nagendra.P
All Answers
Use updated class
Also check your object API name and field Api Names.
Hope this will help you..
Mark Best ANSWER if its work for you.
Thanks
karthik
Assuming as you are referring to a custom object and custom fields please update your code as below
Controller:
VF Page;
Please mark this as best answer if the information helps.
Best Regards,
Nagendra.P