Lightning

Events in Lightning Component and Visualforce page using Lightning Message Service (LMS)

Events in Lightning Component and Visualforce Pages using Lightning Message Channel

Consider a scenario where you are working on multiple components and in which there are Visualforce pages, Lightning Aura Components, Lightning Web Components. We know that we have Lightning Aura Events (Application Event and Component Event) which works in Lightning Aura Component. But what if there is a scenario where you want to send an event across component whether it is between Aura Component or a Web Component or a Visualforce page. Or combination of all three.

Salesforce has introduced Lightning Web Component Message Service (lightning-message-service). It is used to communicate across the DOM between Visualforce pages, Aura components, and Lightning web components, including components in a pop-out utility bar. To communicate across DOM there should be a channel. And salesforce has provided Lightning Message Channel to communicate.

Continue reading “Events in Lightning Component and Visualforce page using Lightning Message Service (LMS)”
Lightning

Pop-up within a pop-up in Lightning Aura Component.

In salesforce we can have only one popup at a time. So, if you are using a popup, then you have to use a work around to display popup.

Here in this blog, I will show you how to display a popup within a popup. We will create 2 components in this demo.

  1. Child Component (Second popup modal)
  2. Parent Component (Actual Popup modal)

So, when user chicks on a button we will display a pop-up window and when user clicks on success button we will display another child pop-up modal.

Continue reading “Pop-up within a pop-up in Lightning Aura Component.”
Lightning

Introduction to Lightning Aura Component.

Salesforce introduced lightning platform way back in 2014 and to build custom applications on lightning platform salesforce introduced Lightning Aura Components in Sprint 2015. Salesforce lightning is best known for its modern UI interface and beautiful look, which is a Platform as a Service (PaaS) platform that allows developers to create add-on applications that integrate into main salesforce.com application. These third-party applications are hosted on Salesforce.com’s infrastructure. In this blog we will see what a Lightning Aura Component contains.

Lightning Component.

The Lightning Component framework is a UI framework for developing single page applications for mobile and desktop devices. Lightning includes the Lightning Component Framework and some exciting tools for developers. Lightning makes it easier to build responsive applications for any device like desktop, mobile, tablet etc. As per Sprint’19 release you can build lightning component using two programing models.

  1. Lighting Aura Component.
  2. Lightning Web Component.
Continue reading “Introduction to Lightning Aura Component.”