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
Sudhakar ReddySudhakar Reddy 

Regarding Controllers

Hi All,

 

 

 As per my understanding,I am thinking that standard controller will provide same functionality.so we have only one standardcontroller.is it correct or not?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
kamlesh_chauhankamlesh_chauhan

Sudhakar,

 

Each standard or custom object has it's own and only one standard controller. We can extend it through adding Controller extension or custom controller.

 

By using standard controller, you will get all standard functionalities of that particluar object without writing any custom code.

 

Standard Controller name is always same as the object name.

 

Regards,

Kamlesh Chauhan, (Founder & Chief Solutions Architect)

LogicRain Technologies, (Salesforce and Force.com Development Division)

Cellular: +91-(997) 476-6800 Office: (732) 676-6400 Skype: kamlesh.logicrain

kamlesh@logicrain.com || http://www.logicrain.com || LinkedIn

All Answers

JitendraJitendra

Hi Sudhakar,

 

Standard Controller will provide same functionality as it is in standard page layout / standard behavior. However if the business logic is little bit tricky then you can use Controller extension or Custom Controller.

 

However, if your requirment meet already, the standard controller will work just fine.

 

I hope it will help.

Sudhakar ReddySudhakar Reddy

Hi Jitender,

 

 My question here is how many standard controllers we have?

JitendraJitendra

Hi Sudhakar,

 

Object Name itself is the Standard Controller. If the Object name is Test__c then Standard Controller is Test__c. SO the answer will be one Standard Controller per object.

I hope it will help.

kamlesh_chauhankamlesh_chauhan

Sudhakar,

 

Each standard or custom object has it's own and only one standard controller. We can extend it through adding Controller extension or custom controller.

 

By using standard controller, you will get all standard functionalities of that particluar object without writing any custom code.

 

Standard Controller name is always same as the object name.

 

Regards,

Kamlesh Chauhan, (Founder & Chief Solutions Architect)

LogicRain Technologies, (Salesforce and Force.com Development Division)

Cellular: +91-(997) 476-6800 Office: (732) 676-6400 Skype: kamlesh.logicrain

kamlesh@logicrain.com || http://www.logicrain.com || LinkedIn

This was selected as the best answer
Sudhakar ReddySudhakar Reddy

Now I am clear about it .

Thanks a lot all.