April 2020 archive

How to call another Method in Same Lightning Controller

In this post, we will see how to call method2 in same lightning controller from method1. In this component, we invoke handleButtonClick() from component like below

Permanent link to this article: https://salesforcebuddy.com/2020/04/how-to-call-another-method-in-same-lightning-controller/

Toast message in Lightning component

How to show toast in lightning record page by using force:showToast. Toast are the message box or you can say notification which developer can show according to action of the user. ATTRIBUTES  type :  The toast can be of 4 types  info success warning error  key :  It specify the icon on the toast when type is not …

Continue reading

Permanent link to this article: https://salesforcebuddy.com/2020/04/toast-message-in-lightning-component/

Salesforce Lightning Confirm Dialog Box

If you want to show a modal window, you can use the code below Lightning Component: Lightning JS Controller: ({ })

Permanent link to this article: https://salesforcebuddy.com/2020/04/salesforce-lightning-confirm-dialog-box/