+ Start a Discussion

standard controller function [delete]






In this link, delete method is there, but when I m using this method with custome object, it is not working.

Is there any replacement for this functionality over there?




I think you would not change the standard controller, In sample code it is "Account".

But when you are using delete for custom object then standard controller must be change.

Let your custom object API name is "myObject__c" then stnadard controller must be myObject__c.


<apex:page standardController="myObject__c">
Idd BaksheeshIdd Baksheesh

Ok just confirm, if you use the command button Action to delete, you need the object id in form of 




in the URL


if you have no id, it won't display the delete button. 


Please check and let me know.