• abdul kalam 13
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi,
I created a Visualforce page witha a standardcontroller to a customer obj. Like an Object called Registration___c and I a visualforce page called Farmer_Registration. Now When I click "New" button it should be redirected to my custome visualforce page called Farmer_Registration.vfs. I used button & links in that I tried to overide the "New" button with VF page. But the picklist couldn't show the Farmer_Registration.vfs page. What should I do? plse give reply as soon as possible.
Hai,
I have writter a trigger on custom obj called as Horticulture__c to avoid duplicate entries/names in the table. While executing my trigger it shows error like "Initial term of field expression must be a concrete SObject: List<Horticulture__c>". pls give solution.
trigger Duplicate_Farmer_Horti on Horticulture__c (before insert,before update)
{
    for (Horticulture__c H:Trigger.New)
    {
        List<Horticulture__c> Horti = [select id from Horticulture__c where Applicant_Name__c=:H.Applicant_Name__c];
        if(Horti.size()>0)
        {
            Horti.Applicant_Name__c.addError('You can not create duplicate name');
        }            
        
    }

}
Hi, 
I am new for salesfore, and I got this error please solve it
trigger TriggerAccount on Account(before insert)
{
    for(Account a :Trigger.New)
    {
        if(a.AccountNumber==null)
        {
           a.addError('Sorry'); 
        }
    }
}
Hai,
I have writter a trigger on custom obj called as Horticulture__c to avoid duplicate entries/names in the table. While executing my trigger it shows error like "Initial term of field expression must be a concrete SObject: List<Horticulture__c>". pls give solution.
trigger Duplicate_Farmer_Horti on Horticulture__c (before insert,before update)
{
    for (Horticulture__c H:Trigger.New)
    {
        List<Horticulture__c> Horti = [select id from Horticulture__c where Applicant_Name__c=:H.Applicant_Name__c];
        if(Horti.size()>0)
        {
            Horti.Applicant_Name__c.addError('You can not create duplicate name');
        }            
        
    }

}
Hi, 
I am new for salesfore, and I got this error please solve it
trigger TriggerAccount on Account(before insert)
{
    for(Account a :Trigger.New)
    {
        if(a.AccountNumber==null)
        {
           a.addError('Sorry'); 
        }
    }
}