function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rohit AmmanamanchiRohit Ammanamanchi 

Visualforce learning

I have created fields in teh Resume Object and tried to insert in the VF page and got this error "Unknown property 'Resume.Professional_Experience__c'". Can you please tell me where did I go wrong?

<apex:page  controller="Resume" renderAs="pdf">
    <apex:pageBlock title="Resume">
        <apex:pageBlockTable value="{!Professional_Experience__c}" var="con">
           
        
        </apex:pageBlockTable>
        
        
    
    </apex:pageBlock>
</apex:page>
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Rohit,

As it is custom component It shouls have Resume__c on the controller name.

Please find the below page i created and working as expected.
 
<apex:page standardController="Resume__c" tabStyle="Resume__c" >

<apex:form>
<apex:pageBlock title="Resume Record">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Resume Details" columns="2">
<apex:inputField value="{!Resume__c.Name}"/>
<apex:inputField value="{!Resume__c.Professional_Experience__c }"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

Replace the field names as per your requirement.

If this solution helps, Please mark it as best answer.

Thanks,
 
Anand kurubaAnand kuruba
Hi,
<apex:page controller="Resume__c" renderAs="pdf">
    <apex:form>
        <apex:pageBlock title="Resumedetails" >
            Resumedetails : <apex:inputField value="{!Resume__c.Professional_Experience__c }"/>
            <apex:commandButton action="{!save}" value="save"/>
            <apex:commandButton action="{!cancel}" value="cancel"/>
        </apex:pageBlock>
    </apex:form>
</apex:page>
once please follow this link
https://www.tutorialkart.com/visualforce/custom-controller-in-salesforce/

Thanks!!
Rohit AmmanamanchiRohit Ammanamanchi
So here is the scenario. I have created the requisite fields for resume in the Resume object like "professional Summary", Professional Experience, etc and once I put the details on the record, it should display as a pdf. So I am not looking to have the command buttons like save, cancel on the pdf page.