+ Start a Discussion
Jiří ZindulkaJiří Zindulka 

Mass Edit records in related list

Hi All,

I would like to know, if there is an option how to mass edit data in related list opportunity resource. In my example I need to mass uncheck checkbox "Nabidka" for all records as you can see from printscreen.
User-added image
Gerardo Rodriguez LaraGerardo Rodriguez Lara
Try with an Apex class like:
 
List<Opportunity> opps = [Select Id, Name, Nabidka__c from Opportunity];

// process account records

    for(Opportunity op : opps) {

        op.Nabidka__c = false;

    }

    update opps;

 
Jiří ZindulkaJiří Zindulka
Hi, thx. I think this must be done by java script button on related list? it is neccessary to create apex class? 

Thank oyu very much.

Lukáš