Activity Forums Salesforce® Discussions What Is The Need Of “custom Controller” In Visualforce ?

  • What Is The Need Of “custom Controller” In Visualforce ?

    Posted by Aman on September 20, 2018 at 2:59 pm

    What Is The Need Of “custom Controller” In Visualforce As Everything Can Be Done By The Combination Of Standard Controller + Extension Class.?

    Parul replied 5 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • shariq

    Member
    September 20, 2018 at 3:00 pm

    Hi,

    Sharing setting is applied on standard object/extension by default; In case we don’t want to apply sharing setting in our code then Custom controller is only option.
    It is possible that the functionality of page does not required any Standard object or may require more than one standard object, then in that case Custom controller is required.

    Thanks

  • Parul

    Member
    September 20, 2018 at 5:11 pm

    1)      Sharing setting is applied on standard object or extension by default, In case we don’t want to apply sharing setting in our code then Custom controller is only option.

    2)      A custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user.

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos