You need to sign in to do that
Don't have an account?
valMoto
My Apex object:
Helper class
The error I am getting is that my Helper.getAll() method does not exist or incorrect signature. I am using Eclipse to develop, run my test cases, and trying to deploy. My Apex class doesnt seem to be finding my Helper object for whatever reasons?
Trigger doesn't recognize Apex class
Having issues deploying some custom Apex classes to the Production environment. Everything works fine in the Sandbox, but in production it is unable to reference my Apex objects.
Here is some code snippets:
Trigger:
-----------------------------
Code:
trigger peptideTrend_tgr on Peptide__c (before insert, before update) { for (Peptide__c pep : Trigger.new) { if( pep.Sequence__c != null ) { PepTrender trender = new PepTrender(pep.Sequence__c); } } }
My Apex object:
Code:
public class PepTrender { public PepTrender(String sequence) { mSequence = sequence; Cleavage = ''; Purification = ''; Synthesis = ''; Init(); } private void Init(){ // Loop through all variations List<Variation__c> varsList = Helper.getAll(); }
Helper class
Code:
public class Helper{ public static List<Variation__c> getAll() { List<Variation__c> varsList= [SELECT Name, FilterType__c, Operator__c, Value__c FROM Variation__c]; return varsList; }}
The error I am getting is that my Helper.getAll() method does not exist or incorrect signature. I am using Eclipse to develop, run my test cases, and trying to deploy. My Apex class doesnt seem to be finding my Helper object for whatever reasons?
Thanks!