What is ViewState why ViewState in Salesforce?
What is viewState? ViewState holds state of the visualforce page that holds state that includes the fields, components and controller state. Viewstate data in encrypted and cannot be viewed tools like firebug. – Stores Objects that are reachable from a non-transient data member in a controller or extension.
How do I fix ViewState error in Salesforce?
In order to reduce the view state, make use of the following:
- “Transient” keyword – to declare instance variables that can’t be saved, and shouldn’t be transmitted as part of the view state for a VF page.
- Minimize the number of forms i.e on a page.
- Refine your SOQL to retrieve only the data needed.
How do I view ViewState in Salesforce?
Enabling the View State Tab Enter Personal Information in the Quick Find box, then select Personal Information. Click Edit. Select the Development Mode checkbox if it isn’t selected. Select the Show View State in Development Mode checkbox.
What is the difference between rendered and Rerender?
Render happens once, at first. Re-render can happen only after render, nth times. Render refers to rendering the content for the initial load. Re-render refers to re-rendering the content upon updating of props.
What is extension controller in Salesforce?
A controller extension is an Apex class that extends the functionality of a standard or custom controller. Use controller extensions when: You want to leverage the built-in functionality of a standard controller but override one or more actions, such as edit, view, save, or delete. You want to add new actions.
What is ReRender in Salesforce?
ReRender is used to refresh a particular section of the visual force page. We have to just mention the id of the page section (in the ReRender attribute) that needs to be refreshed. In the following example Clicking of the command button “Refresh Lower Page Block” refreshes the lower page block.
What are different types of sharing rules?
What are the different types of Sharing Rules in Salesforce and explain them?
- Account Sharing.
- Case Sharing.
- Contact Sharing.
- Custom Object Sharing.
- Lead Sharing.
- Opportunity Sharing.
- Salesforce Sharing Rules.
What is the difference between controller and extension?
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. A controller extension is an Apex class that extends the functionality of a standard or custom controller.