Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What is the use of ApexPages.StandardController in the below? What is standard controller salsforce?

Asked by Anisha Dalal Apr 10, 2021 531 views 1 answer
Share

About this question

What is the use of ApexPages.StandardController in the below? What is standard controller salsforce?

Code

public class myControllerExtension { private final Account acct; public myControllerExtension(ApexPages.StandardController stdController) { this.acct = (Account)stdController.getRecord(); } public String getGreeting() { return 'Hello ' + acct.name + ' (' + acct.id + ')'; } }

Markup

  {!greeting} 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.