You need to sign in to do that
Don't have an account?
sreeja
how to use the remote action in salesforce, any small examples working with custom objects
how to when to use the remoteaction in salesforce, any small examples to start ... i??
how do the remote action will work in the salesforce ..
thanks
sree
how do the remote action will work in the salesforce ..
thanks
sree
Try below code to display list of contacts using RemoteAction -
In order to help the community, mark it as best answer if it helps you.
Thanks,
Parmanand Pathak
All Answers
Try below code to display list of contacts using RemoteAction -
In order to help the community, mark it as best answer if it helps you.
Thanks,
Parmanand Pathak
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.
It will works like whenever your are clicking the command button it will call the Javascriprt funtion. on that javascript funtion it will calls the funtion
Please refer the below Visualforce page :$RemoteAction.ContactJs.getcon
Points to remember while implementing remote action function:
Remote action method should have @RemoteAction annotation.
It will goto controller and it will check the RemoteAction method and it will check for con() method.
On that method whatever we are retriving in the SOQL Query display returns and It will displays in the Screen by clicking the Commmand button. Please refer the salesforce Document Link :
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_summary.htm
https://webkul.com/blog/remote-action-function-visualforce-page/
Try the above code to understand the Remote action.
Please let me know any help required. If it helps you please make it as solved.
Regards,
Madhukar.