Activity Forums Salesforce® Discussions Why we use Javascript Remoting & Remote OBject?

  • Saurabh

    Member
    May 8, 2017 at 2:34 pm

    Hi Suraj

    Well, here are few advantages of “Visualforce Remote Objects” :

    1. No need to write Controllers, Everything can be done in Visualforce only.
    2. 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.
    3. 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

  • shariq

    Member
    September 19, 2018 at 9:04 pm

    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.

Popular Salesforce Blogs

Popular Salesforce Videos