Activity Forums Salesforce® Discussions Different Nomenclature for Actions on Server and Client Side in Salesforce Lightning Component.

  • Different Nomenclature for Actions on Server and Client Side in Salesforce Lightning Component.

    Posted by Parantap on February 22, 2019 at 7:47 pm

    Hi!

    I have a doubt regarding the names for the action methods on client and server side. For example, I create a lightning page that creates records of sObject.  I have a button on the page, which on click creates a record by calling create("{!c.create}" which calls a 'create' method in my js controller. The js cntlr calls a server-side method, say, createObjectserver. Now if I change my name from createObjectserver to just create, then I am not getting errors but the single click on create button is calling the event multiple times indefinitely. But if I keep the methods names different, everything works fine. Why is that happening?

    Parantap replied 5 years, 2 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

How to Learn Salesforce Development | Salesforce learning steps for beginners | Trailhead demo

Video in

In this video, we shared the steps to learn salesforce lightning basics, salesforce apex development, CRM in online for free from scratch very quickly. Learn salesforce…

Popular Salesforce Infographics