What is Action Region in Salesforce?

actionRegion provides an area of a Visualforce page that decides and separates which components should be processed by the force.com server when an AJAX request is generated. Only the components which are inside actionregion component are processed by server, so it increases visualforce page performance.

<apex:actionStatus> A component that displays the status of an AJAX update request. An AJAX request can either be in progress or complete. actionStatus visualforce component displays the status of an AJAX update request. An AJAX request can either be in progress or complete.

what is remote action in Salesforce? Remote action function in salesforce allows user to access any method from any class through javasrcipt methods, and get the result as a javascript object for further manipulation. Remote action method should have @RemoteAction annotation.

Also Know, what is the use of action Poller?

Action poller acts as a timer in visualforce page. It is used to send an AJAX request to the server depending on the time interval (time interval has to be specified or else it defaults to 60 seconds). In the action attribute a controller method gets called.

What is the difference between action function and action support?

Action function can call the controller method from java script. 2. Action support adds AJAX support to another visualforce component and then call the controller method. But from a particular component which has AJAX support(onclick, onblur etc) action function can be called to call the controller method.

What are action support action functions and action Pollers used for Salesforce?

Difference between Action Function and Action Support apex:actionFunction apex:actionSupport Both action function and action support can be used to call a controller method using an AJAX request Both action function and action support can be used to call a controller method using an AJAX request

What are the Ajax functions in Salesforce?

AJAX is the art of exchanging data between server and client without reloading the complete web page. Visualforce has inbuilt support for the AJAX. using the attribute “rerender” we can specify that where the response should be rendered.

What is the advantage of using custom settings?

The benefit of using custom setting instead of custom objects: Data in custom setting is available in application cache, hence efficient and fast access. No need to waste SOQL for fetching data from custom setting. There are some methods available in custom settings that we can use to get the data instead of SOQL.

What is the use of custom labels how do you access them in Apex classes and in Visualforce pages?

Custom Labels. Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user’s native language. Custom labels are custom text values that can be accessed from Apex classes, Visualforce pages, or Lightning components.

What is action support in Salesforce?

actionSupport component adds AJAX support to other components in visualforce. It allows components to be refreshed asynchronously by calling the controller’s method when any event occurs (like click on button). It allows us to do partial page refresh asynchronously without refreshing full page.

What is 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.

What are the Ajax functions why we use them?

AJAX stands for Asynchronous JavaScript and XML. It is used for allowing the client side of an application to communitcate with the server side of the application. Before AJAX, there was no way for the client side of a web application to communicate directly with the server. Instead, you would have to use page loads.

What is VF remoting?

JavaScript remoting is a tool that front-end developers can use to make an AJAX request from a Visualforce page directly to an Apex controller. JavaScript remoting allows you to run asynchronous actions by decoupling the page from the controller and to perform tasks on the page without having to reload the entire page.

What is Rerender in Salesforce?

ReRender : Rerender is used to refresh a particular section of the visualforce page. We have to just mention the id of the page section (in the Rerender attribute) that needs to be refreshed.

What is a remote action?

Remote Action is an Apex annotation used to mark a method as being available for javascript remoting. Remote Action can call the apex methods from any apex class. Remote Action allows you to call the method from javascript yourself and retrieve the result as a javascript object for manipulation.

What is a future method?

A future method runs in the background, asynchronously. You can call a future method for executing long-running operations, such as callouts to external Web services or any operation you’d like to run in its own thread, on its own time. Each future method is queued and executes when system resources become available.

What is remote object in Salesforce?

Visualforce Remote Objects. Visualforce Remote Objects are proxy objects that enable basic DML operations on sObjects directly from JavaScript. Remote Objects remove some of the complexity from JavaScript remoting by reducing the need for @RemoteAction methods in an Apex controller or extension.

Can we call future method from batch apex?

No, We cannot call future methods directly from batch apex but we can call a web service from batch class and that web service can call the @future method. Also, we can call the future method from finish method in the batch class.

What is Apex component?

apex:component. A custom Visualforce component. All custom component definitions must be wrapped inside a single tag. This component supports HTML pass-through attributes using the “html-” prefix.