• ghada fourane
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Tech Arch
  • Accenture

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
How to enable the mass update button in the accounts. For some users mass update button is there and for some users button is not there.

where i need to enable to have the mass update button for the users.
  • September 01, 2015
  • Like
  • 0
Hi 

How to update master object field when child object field updated

FOR EXAMPLE 
++++++++++++++++++++++++++++++
Bank__c --> Child Object

Balance__c --> Parent Object

There is a lookup between these two object 'test__c'

When i am doing any transcation on Bank__c it automatically updated on Child object means Balance__c
(Txt_Date__c field from child will be updated on Date__c field of parent)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
trigger tarunopp on Bank__c (after update,after insert) {

list<id> list = new list<id>();

for(Bank__c opp:trigger.new)
    {
list.add(opp.test__c);

   }

list<Balance__c > conlist = new list<Balance__c >();

conlist = [select id,Date__c, (Select id,test__c,Txt_Date__c from Bank__c) from Balance__c where ID IN : list];

for(Balance__c con:conlist)


 {
     
con.Date__c=opp.Txt_Date__c;
      update con;     
 }

}