• Prashant Bhardwaj
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hello,

i think I have this time sth. interesting.

The error message is in the Subject and it results because of the following.

I have a list, lets call it SuperList. And in a function getSuperList I put it in a datatable.

But the function should do sth. else too.

This:

       List<Obj__c> SuperRecords = new List<Obj__c> ();

        for(Obj__c x : SuperList){
            if(x.wasSuper__c == false) SuperRecords.add(i);
        }

update SuperRecords;

 

wasSuper is a checkbox. And i want that every Record which has ever been in the SuperList gets the checkbox wasSuper to true. But i get that annoying Error Message.

 

I hope you can help me.