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
Justin PietrasJustin Pietras 

Visualforce Extension - how to create a basic one

Hello everyone!  

I am a SFDC Admin, and I am starting to get into developing a little.  I currently have a VF page using a standard controller, "Orders__c".  Within this object "orders__c" is a seperate object "Order Line Items__c".  I would like to show the "Order Line Items__c" on my current VF Page, but am not clear on how to create an VF Extension.  I understand what I need to do on the VF Page itself, but the extension is very new to me.  Any example of a basic VF Extension for what I am looking at doing would be very useful.  

Thank you in advance!
SandhyaSandhya (Salesforce Developers) 
Hi Justin Pietras,

I would suggest you refer below Salesforce documents which have sample code for the same

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
 
https://developer.salesforce.com/docs/atlas.en-us.salesforce_profile_tabs_cheatsheet.meta/salesforce_profile_tabs_cheatsheet/salesforce_profile_sample_visualforce_page.htm

Hope this helps you!

If this helps you, please mark it as solved.

Thanks and Regards
Sandhya