public class AccountControllerfortable {
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 ];
}
}
Reference: https://dfc-org-production.my.site.com/forums/ForumsMain?id=9062I000000R791QAC Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Can you try code similar to this.
Apex:
Reference: https://dfc-org-production.my.site.com/forums/ForumsMain?id=9062I000000R791QAC
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,