Activity › Forums › Salesforce® Discussions › What is @RemoteAction annotation?
-
What is @RemoteAction annotation?
Posted by Piyush on April 30, 2016 at 1:54 PMWhat is @RemoteAction annotation, can someone tell me?
shariq replied 7 years, 7 months ago 4 Members · 3 Replies -
3 Replies
-
Hi Piyush,
You can use @RemoteAction annotation with static method only. As a result you can’t use public variable directly even if remote action is declared in the same controller.
However, you can pass through public variables via JavaScript as a parameters of remote action. - [adinserter block='9']
-
Hi,
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.
Points to remember while implementing remote action function:
1.Remote action method should have @RemoteAction annotation.
2.The method should also be Global and StaticThanks
-
Hi,
The RemoteAction annotation provides support for Apex methods used in Visualforce to be called via JavaScript. This process is often referred to as JavaScript remoting.
Thanks
Log In to reply.