• Gagan Gupta 32
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
hi,
    there is a requirement that i have to call a commandbutton without clicking on it. Is there any way to call that ?
hi,
    there is a requirement that i have to call a commandbutton without clicking on it. Is there any way to call that ?
I am not sure why this error is popping up or what this error means. Can someone help me out. Here is a sample of the code I used:
trigger AutoInventory on Sol_sence_Sample__c (before insert, before update) 
{
    If(Trigger.IsInsert || Trigger.IsUpdate)
    {
        for(Sol_sence_Sample__c co : Trigger.New)
        {
            If(co.Shipped__c == 'checked' && co.sol_sence_inventory__c != null && co.Quantity__c != null)
            {
                	co.Sol_sence_Inventory__c = co.Sol_sence_Inventory__c - co.Quantity__c;
            }
        }
    }
}