Activity Forums Salesforce® Discussions Why we use Javascript Remoting & Remote OBject? Reply To: 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