Created
September 8, 2013 20:58
-
-
Save msrivastav13/6488359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class winter14Ctrl { | |
public String AccountName{ get; set; } | |
public integer hello{ get; set; } | |
public Date fDate { get; set; } | |
public string email{get;set;} | |
public string phone{get;set;} | |
List<String> lstAccounts; | |
public List<String> getAccounts() { | |
lstAccounts=new List<String>(); | |
for(Account acc:[Select Id ,Name from Account Limit 1000]){ | |
lstAccounts.add(acc.name); | |
} | |
return lstAccounts; | |
} | |
public void setAccounts(List<String> s) { | |
this.lstAccounts=s; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment