Lightning

Get Loggedin User Details in LWC without Apex call

Getting user object fields value in Lightning web component without calling an Apex class.

While working on User Interface design, many times you need to display logged in user interface. Salesforce gives a way to get ID of logged in user directly, but all other fields are usually fetched by calling an apex class.

Continue reading “Get Loggedin User Details in LWC without Apex call”
Lightning

LWC: Clicking a button from a JavaScript Method.

When working in LWC, there will be a scenario where you may have to click a button based on some criteria or some condition from backend(Client side JavaScript section). In HTML, for every tag there is a unique attribute Id. Similarly, when working with LWC’s HTML, for every tag there are multiple unique attributes, one such attribute which can be used is data-id=”Unique_Id”.

Continue reading “LWC: Clicking a button from a JavaScript Method.”
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.”