public class AccountController {
public Date startDate { get; set; }
public string render {get; set;}
public Date endDate { get; set; }
public List<Account> accounts { get; set; }
public void Downloadhere(){
render='pdf';
}
public void search() {
accounts = [SELECT Id, Name, CreatedDate
FROM Account
WHERE CreatedDate >= :startDate ];
}
}
If this information helps, please mark the answer as best. Thank you
public class AccountController {
public Date startDate { get; set; }
public string render {get; set;}
public Date endDate { get; set; }
public List<Account> accounts { get; set; }
public void Downloadhere(){
render='pdf';
}
public void search() {
accounts = [SELECT Id, Name, CreatedDate
FROM Account
WHERE CreatedDate >= :startDate ];
}
}
If this information helps, please mark the answer as best. Thank you
Try the below code which is in the context of the account object. You can customize the code as per your requirement
If this information helps, please mark the answer as best. Thank you
All Answers
Try the below code which is in the context of the account object. You can customize the code as per your requirement
If this information helps, please mark the answer as best. Thank you
but i want that data to be dispalyed in tabular format