I keep testing Jeff Douglas' Dynamic search controller and I'm getting a compile error code.
Error: Compile Error: Method does not exist or incorrect signature: Contact.interested_technologies__c.getDescribe() at line 81 column 44
Here's his code....
// use apex describe to build the picklist values
public List<String> technologies {
get {
if (technologies == null) {
technologies = new List<String>();
Schema.DescribeFieldResult field = Contact.interested_technologies__c.getDescribe();
for (Schema.PicklistEntry f : field.getPicklistValues())
technologies.add(f.getLabel());
}
return technologies;
}
set;
}
Any suggestion? I have no error on another sandbox.
Thanks in advance.