You need to sign in to do that
Don't have an account?
Alex Makk
Variable does not exist: PicklistDescriber
Hi all! I have following piece of a code that gives me error when I try to deploy:
Variable does not exist: PicklistDescriber
Any ideas?
Variable does not exist: PicklistDescriber
Any ideas?
public OpportunityWrapper(String accId, String accName, String oppTitalName, String recordTypeId){ this.accId = accId; this.accName = accName; this.oppTitalName = oppTitalName; this.recordTypeId = recordTypeId; this.lstCurrentUsg = new List<SelectOption>(); this.lstCurrentPPEType = new List<SelectOption>(); this.lstCurrentDis = new List<SelectOption>(); this.lstCompetition = new List<SelectOption>(); this.lstDisContainer = new List<SelectOption>(); this.oppObj = new Opportunity(); this.oppObj.recordTypeId = recordTypeId; for(String optName : PicklistDescriber.describe('Opportunity', oppTitalName, 'Current_Usage__c')) { this.lstCurrentUsg.add(new SelectOption(optName, optName)); } for(String optName : PicklistDescriber.describe('Opportunity', oppTitalName, 'Current_PPE_Type__c')) { this.lstCurrentPPEType.add(new SelectOption(optName, optName)); } for(String optName : PicklistDescriber.describe('Opportunity', oppTitalName, 'Disposal_Method__c')) { this.lstCurrentDis.add(new SelectOption(optName, optName)); } for(String optName : PicklistDescriber.describe('Opportunity', oppTitalName, 'Competition__c')) { this.lstCompetition.add(new SelectOption(optName, optName)); } for(String optName : PicklistDescriber.describe('Opportunity', oppTitalName, 'Disposal_Container__c')) { this.lstDisContainer.add(new SelectOption(optName, optName)); } }
PicklistDescriber is a class here with a static method describe.
Can you add this class to your changeset? It should be new or deleted in the targeted org perhaps.
All Answers
PicklistDescriber is a class here with a static method describe.
Can you add this class to your changeset? It should be new or deleted in the targeted org perhaps.