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

Why is the apex pageblocktable not showing records?

Asked by Elvera Peasley Mar 3, 2023 946 views 1 answer
Share

About this question

 I'm querying Task records from the constructor and displaying them in Pageblocktable but it's not displaying records in the Pageblock table. Could you please let me know what went wrong?


{!tasklist}

    
         
            
        
    

public class myControllerExtension {
public Account acct {get;set;}
public List tasklist  {get;set;}
public myControllerExtension(ApexPages.StandardController stdController) {
    acct = (Account)stdController.getRecord();
    tasklist = [Select Id, Subject from Task limit 20];     
}
}

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.