DependentPicklistController


SUBMITTED BY: Guest

DATE: Jan. 22, 2014, 12:12 p.m.

FORMAT: Text only

SIZE: 386 Bytes

HITS: 4647

  1. public class DependentPicklistController{
  2. public List<Account> accounts {get;set;}
  3. public List<Contact> contacts {get;set;}
  4. public DependentPicklistController(){
  5. accounts = [select id, name, (select id from contacts) from account limit 1000];
  6. contacts = [select id,accountid, name from contact where accountid !=null limit 1000];
  7. }
  8. }

comments powered by Disqus