Activity › Forums › Salesforce® Discussions › Why we use Javascript Remoting & Remote OBject?
-
Why we use Javascript Remoting & Remote OBject?
Posted by Suraj on May 8, 2017 at 1:10 PMWhy we use Javascript Remoting & Remote OBject?
shariq replied 7 years, 9 months ago 3 Members · 2 Replies -
2 Replies
-
Hi Suraj
Well, here are few advantages of “Visualforce Remote Objects” :
- No need to write Controllers, Everything can be done in Visualforce only.
- As @RemoteAction annotated methods needs to be static so you had to take special precaution as it didn’t supported Viewstate. This hurdle is completely removed now.
- No need to write Test Class now, as no Controller is involved.
for more information you can refer tohttps://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_remote_objects_considerations.htm
Hope it may help
- [adinserter block='9']
-
Hi,
Visualforce Remote Objects:
- Makes basic “CRUD” object access easy
- Doesn’t require any Apex code
- Supports minimal server-side application logic
- Doesn’t provide automatic relationship traversals; you must look up related objects yourself.
JavaScript Remoting:
- Requires both JavaScript and Apex code
- Supports complex server-side application logic
- Handles complex object relationships better
- Uses network connections (even) more efficiently
Hope this helps.
Log In to reply.