You need to sign in to do that
Don't have an account?
Pranav_Vaidya
Database.SaveResult gives error
Hi,
Below is from my controller extension class. I have a VF page with standard controller as a custom object.
For the below line of code I get an error - Illegal assignment from Database.SaveResult to LIST<Database.SaveResult>
Code:
Database.SaveResult[] MySaveResult = Database.Insert(currTrip, false );
My code line is exactly as given in the Apex Developer's guide. I don't understand what's going wrong here!!
Any help is much appreciated.
Thanks.
I don't believe myself...such a silly mistake
Resolved...changed the code to Database.SaveResult MySaveResult = Database.Insert(currTrip, false );
Thanks.
All Answers
I don't believe myself...such a silly mistake
Resolved...changed the code to Database.SaveResult MySaveResult = Database.Insert(currTrip, false );
Thanks.