You need to sign in to do that
Don't have an account?
Trigger to update parent checkbox if child record has atleast 1 checkbox ticked.
I have the following requirement :
object : Product
fields:
1. New (checkbox)
2. Old ( checkbox)
3. Sold(checkbox)
4. Out of stock(checkbox)
5.Item (lookup to Itemsale)
object: Itemsale
1. New (checkbox)
2. Old ( checkbox)
3. Sold(checkbox)
4. Out of stock(checkbox)
how to write the trigger so that atleast one record of itemsale has "New" checked then it will update parent field "New" as checked?
object : Product
fields:
1. New (checkbox)
2. Old ( checkbox)
3. Sold(checkbox)
4. Out of stock(checkbox)
5.Item (lookup to Itemsale)
object: Itemsale
1. New (checkbox)
2. Old ( checkbox)
3. Sold(checkbox)
4. Out of stock(checkbox)
how to write the trigger so that atleast one record of itemsale has "New" checked then it will update parent field "New" as checked?
This might help you
Thanks,
N.J