You need to sign in to do that
Don't have an account?

What is the difference between Action Function, Remote Action and Action Support.
Hi,
I am having difficulty in understanding What is the purpose and difference between Action Function, Remote Action and Action Support. Pls explain with a Example or a scenario.
thanq.
I am having difficulty in understanding What is the purpose and difference between Action Function, Remote Action and Action Support. Pls explain with a Example or a scenario.
thanq.
Action Function
Action function used to call the server side method using JavaScript.
Explanation:-
----------------
ActionFunction: provides support for invoking controller action methods directly from JavaScript code using an AJAXrequest
Used when we need to perform the similar action on various events. Een though you can use it in place of actionSupport as well where the only event is related to only one control.
Example :
ActionSupport :
A component that adds AJAX support to another component, allowing the component to be refreshed asynchronously by theserver when a particular event occurs, such as a button click or mouseover.
Used when we want to perform an action on a perticular eventof any control like onchange of any text box or picklist.
Example :
@RemoteAction is an Apex annotation used to mark a method as being available for javascript remoting. This allows you to call the method from javascript yourself and retrieve the result as a javascript object for manipulation, as per the example in the documentation. They are static and global, and hence don't have access to your current controller variables and methods.
For example, please refer below link.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
https://developer.salesforce.com/forums/?id=906F0000000ADFwIAO
Hope this helps you!
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
Thanks and Regards
Sandhya
https://www.sfdc-lightning.com/2018/09/action-function-in-salesforce.html
https://www.sfdc-lightning.com/2018/09/action-support-in-salesforce.html
new record’s MyDate field should be 1 month ahead that of its parent Account’s MyDate field. And if multiple
contact records
are inserted under one account then the contact records’s MyDate field should be 1 month ahead of each other.
For example:
There are 3 records of accounts – A1 (1st July 2017), A2 (1st Jan 2018), A3 (1st Oct 2017)
Now we are inserting multiple contacts under these 3 accounts like this:
A1 –> C1, C2, C3
A2 –> C4, C5, C6, C7
A3 –> C8, C9
So the MyDate fields of new contact records should be like this:
C1 – 1st Aug 2017
C2 – 1st Sep 2017