<apex:page controller="FetchdatathroughCSV" sidebar="false" action="{!Fetechdata}" cache="false" contentType="text/plain/#contacts.csv">
| public class FetchdatathroughCSV { public List<Contact> con {get;set;} public PageReference Fetechdata() { con = [Select Id ,firstName ,LastName from contact limit 10]; return null; } } |
No comments:
Post a Comment