You need to sign in to do that
Don't have an account?
phantom1982
Updating a custom object
Can someone please explain the standard way to update a custom object from an APEX class?
Thanks
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Can someone please explain the standard way to update a custom object from an APEX class?
Thanks
Hiya,
One of the ways to update a custom object is to get the object record from the database, and calliing an update on the record.
If you are new to the Force.com platform, you might want to read the Force.com workbook which contains very good examples for beginners.
http://www.salesforce.com/us/developer/docs/workbook/index.htm
Hope this helps!
A J
All Answers
You'd simply use the update method, e.g.
Obviously this is a rather simplistic example, but if you have a reference to the object that's all you need to do.
Hiya,
One of the ways to update a custom object is to get the object record from the database, and calliing an update on the record.
If you are new to the Force.com platform, you might want to read the Force.com workbook which contains very good examples for beginners.
http://www.salesforce.com/us/developer/docs/workbook/index.htm
Hope this helps!
A J
Thanks for the replies.
I found out what was wrong, had been trying to update from within the constructor which is not allowed and getting this error:
System.LimitException: DML currently not allowed
Class.LControllerFalcoceta.getpoint: line 142, column 29 External entry point
Thanks