You need to sign in to do that
Don't have an account?
Shirley Maglio
How to call the overridden Delete button in the Related List, so that it will get called instead of the standard Salesforce Delete on the Account detail page (displayed with the nooverride=1" parameter)?
Hi All,
I have overriden the standard "View" of the Account detail page with a custom Visualfroce page. When I need to display the Account detail page, I use the "nooverride=1" parameter to display it and bypass the override.
I have also overridden Salesforce’s standard Delete button in a Related List of the Account detail page, by creating a second Visualforce page with an Apex controller extension class.
The problem I am having is, when I clicked the overridden Delete button in the Related List, the second Visualforce page is never called. The standard Salesforce Delete was called instead. I think this is happening because the Account Detail page was displayed with the nooverride=1" parameter. Thus, no overrides were allowed.
Can someone give me some pointers as to how to call the overridden Delete button in the Related List, so that it will get called instead of the standard Salesforce Delete on the Account detail page (displayed with the nooverride=1" parameter)?
Any help would be greatly appreciated!
Shirley
I have overriden the standard "View" of the Account detail page with a custom Visualfroce page. When I need to display the Account detail page, I use the "nooverride=1" parameter to display it and bypass the override.
I have also overridden Salesforce’s standard Delete button in a Related List of the Account detail page, by creating a second Visualforce page with an Apex controller extension class.
The problem I am having is, when I clicked the overridden Delete button in the Related List, the second Visualforce page is never called. The standard Salesforce Delete was called instead. I think this is happening because the Account Detail page was displayed with the nooverride=1" parameter. Thus, no overrides were allowed.
Can someone give me some pointers as to how to call the overridden Delete button in the Related List, so that it will get called instead of the standard Salesforce Delete on the Account detail page (displayed with the nooverride=1" parameter)?
Any help would be greatly appreciated!
Shirley
I created a custom object called "Special Notes", and this custom object has a look up field to Account object. The "Special Notes" is added as a related list on the Account detail page layout.
Yes, I was talking about overriding the "Del" link on the related list.
I was saying the Account detail page was called and displayed with the "nooverride=1" parameter in the URL.
Shirley
I just tried overrideing the Delete function of Contact and a custom object in one of my sandboxes, then displayed an Account record with "nooverride=1" and got the visualforce page as expected (after the "Are you sure?" popup), not sure why it's not working for you.
Thanks,
Kevin.
When I clicked on a link for an Account record (without "nooverride=1"), the first custom Visualforce page is displayed with summary tables and charts. To bypass this Vf page to display the actual Account detail page, a link with "nooverride=1" is accessed. This is the condition I am working with now.
The overridden Del link on the Related List is supposed to go to my second Visualforce page, except it's defaulting to standard Salesforce delete.
I opened the Account record with the "nooverride=1" parameter, then clicked on the "Del" link of either the Contact or the custom object related list and got the visualforce pages (equivalent to your second visualforce page) used for overridding the Delete function of Contact or the custom object.