function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vagishvagish 

standard controller function [delete]

Hi,

 

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_std_actions.htm

 

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?

Alok_NagarroAlok_Nagarro

Hi,

 

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 

 

id=Objectd

 

in the URL

 

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

 

Please check and let me know.