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 3 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Popular Salesforce Infographics