Salesforce
PDII · Question #71
A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex…
The correct answer is A. @RemoteAction global static String getTable() C. @RemoteAction public static String getTable(). See the full explanation below for the reasoning.
Question
A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers. What is the correct syntax to declare a remote method in Apex? (Choose two.)
Options
- A@RemoteAction global static String getTable()
- B@RemoteAction global String getTable()
- C@RemoteAction public static String getTable()
- D@RemoteObject global static String getTable()
How the community answered
(70 responses)- A84% (59)
- B10% (7)
- D6% (4)
Community Discussion
No community discussion yet for this question.