How to call method in Apex With @RemoteAction - Domreysa

Post Top Ad

Post Top Ad

Monday, June 11, 2018

How to call method in Apex With @RemoteAction

1. @RemoteAction : use to call method from page to class by js

In Apex class:

global static List<Account> getAccounts() { //your code }

In JS method:

function getAllAccount(){
// call method from saleforce class

        function(responseAccounts, event){
        {escape: true}

No comments:

Post a Comment

Post Top Ad

Responsive Ads Here