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
GordymanLG2GordymanLG2 

Extend Standard Case Controller without using VF page

I need to add some logic to the standard CaseView controller (specifically to capture the user IP address), but cannot use a VF page override because this would disable inline editing of the CaseView page.  Is there any way to get a class method to execute without being called from a VF page?

 

This logic would execute everytime the CaseView standard view was called.  I can't use the standard functionality provided to get the IP Address (e.g. ApexPages.currentPage().getheaders()) from within a trigger because the page context isn't relevant to the bulk processing nature of triggers.

 

Mike Gordon

aka GordymanLG2

 

 

MohitMMohitM

Hi ,

 

There is no way around where you can use the Case View controller to extend it functionality without visual force page.

 

Thanks

Mohit Mohan

Developer support team