• vijayakumar B
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi friends,
   Could any one of you help  me to run trigger in eclipse?
i Just connected eclipse to salesforce org and i witten this trigger;>>>>>>



trigger limitrow11 on Candidate__c (before insert) {


integer x=0;

List<Candidate__c> Candidatelname = [select First_Name__c

              from Candidate__c];


x=Candidatelname.size();
for ( Candidate__c candInLoop : Trigger.new) {
if(x>=20){
candInLoop.adderror('exceeded');
}
}

}

now im  not able to rub this trigger and it is giving me a error message like  "unable to open apex editor and null argumment"..
hi friends,
 this trigget is not working.
my aim is to print an error message  if the selected url is shine.com

 could you help me..?

trigger ppp on Job_Posting__c (before insert,before update) {

//Employment_Website__c web=new Employment_Website__c();
for (Job_Posting__c jobInLoop : Trigger.new) {
        if(String.valueOf(jobInLoop.Employment_Website__c)=='http://Shine.com'){
       
        jobInLoop.addError('WE cannot post your Job to shine.com');
        }
    }
//Web_Address__c   Price_Per_Post__c

}
hi friends,
 this trigget is not working.
my aim is to print an error message  if the selected url is shine.com

 could you help me..?

trigger ppp on Job_Posting__c (before insert,before update) {

//Employment_Website__c web=new Employment_Website__c();
for (Job_Posting__c jobInLoop : Trigger.new) {
        if(String.valueOf(jobInLoop.Employment_Website__c)=='http://Shine.com'){
       
        jobInLoop.addError('WE cannot post your Job to shine.com');
        }
    }
//Web_Address__c   Price_Per_Post__c

}