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
Shebin-KVP Business SolnsShebin-KVP Business Solns 

Prevent from navigating to standard page for records deleted

Hi All,

 

 How can I prvent from  navigating to standard page for records deleted and for other errors.

Our project is such that all pages should be in custom theme and styles. I have VF page for all objects.

Problem arises if the record , which I am going to open is already deleted ..  SFDC redirect me to standard

page and displaying record deleted with standard   header and sidebar. How can I prevent it. I  did not find any

organisation wide error page or anything else to prevent it in controller class also...

 

 

Please share your ideas....

 

Thanks in Advance

 

Shebin Mathew

KVP Business Solutions

Bangalore.

Navatar_DbSupNavatar_DbSup

Hi,

 

If you are displaying the detail of a record by using vf page then put your code in the try catch block and customize the error message.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

 

Shebin-KVP Business SolnsShebin-KVP Business Solns

Hi Navatar,

 

 Thanks for your Reply..

 

 My problem is that before any controller is executing the page is going to standard page showing "Record Deletd" .

So i am not able use try catch blocks.

 

Thanks Again.

Shebin Mathew.