5 votes
Accepted

For Loop in Aura JS taking long time to Process

As I've stated about LWC a few times, the problem is not technically Aura, but rather the Lightning Locker Service. Lightning Web Security will help alleviate the problem, but for now, the solution is ...
user avatar
  • 438k
5 votes
Accepted

Do we have any character limit for the message we display in toast pop up using force:showToast?

No, there is no hard-coded limit. Instead, you'll end up scrolling off the screen. How much text you'll be able to show will depend on your screen resolution, browser window size, and zoom/scale ...
user avatar
  • 438k
5 votes
Accepted

Should a newbie learn and code everything in LWC?

It might be helpful to clarify some terms, as it isn't always clear just from undirected reading of the documentation Lightning Components is a broad the used to define the components that make up the ...
user avatar
  • 1,343
5 votes

How to set component attributes?

You have to pass in a reference to the callback, and use addEventHandler, as in: button.addEventHandler('eventName', component.getReference('c.clickHandler')); The component must have an aura:...
user avatar
  • 438k
5 votes

Aura component - How to improve load time faster

You'll want to read about my explanation of the boxcar effect. Basically, everything that gets queued up in connectedCallback (LWC) or aura:valueInit (Aura) handlers will all go as a single ...
user avatar
  • 438k
4 votes
Accepted

Aura Component is referring wrong Static Resource (js method)

All components in the same namespace (e.g. c or mynamespace) share the same window, so anything you put on that object is shared across all components in that namespace. That object is essentially the ...
user avatar
  • 438k
4 votes

Implementing encryption within Aura Component

This console is accessed by our business team to work with customer cases. As we are including all data in the URL, I am trying to implement encryption on one of the URL parameters that holds customer'...
user avatar
  • 87.3k
4 votes
Accepted

Problems generating Blob from Uint8Array

Update This has now been patched in the Spring 22 sandboxes and Scratch Orgs. I have verified that the the decoding now works as expected. This is a bug in LWS, and should be reported. I'm still ...
user avatar
  • 438k
4 votes

How to set component attributes?

I first want to suggest to use LWC more than Aura. Aura is older and more or less deprecated or in the path to be. Also, in LWC, event handling (and almost everything) will be closer to standard ...
user avatar
4 votes
Accepted

Component error: randomly happening in a page where the lighting component is not in

It appears that your component never unsubscribed from the EMP API. This means that the library is holding a persistent reference to the component, even after it would have been unloaded, which causes ...
user avatar
  • 438k
4 votes
Accepted

How to fetch all record type Names for a object in LWC without APEX

All you have to do is use lightning/uiObjectInfoApi module whose getObjectInfo adaptor returns you all the info about object:- import { LightningElement, api, wire, track } from 'lwc'; import { ...
user avatar
3 votes
Accepted

Flow Builder not firing up after approval process

This has been incorporated into the API version v54.0. To get the flow to be fired from an approval process update the flow itself needs to be saved in that version or higher.
user avatar
3 votes
Accepted

window.addEventListener is fired multiple times

This symptom is indicative that you've registered the same listener more than once. You must remember to deregister events when your component unloads to prevent his problem. This is done with aura:...
user avatar
  • 438k
3 votes
Accepted

Is there a way to launch a Lightning App in Lightning from Classic?

Using lightning.force.com/lightning in a URL link should be enough to have the user's page opened in Lightning Experience (LEX). In terms of opening a specific app, there's two ways that you can see ...
user avatar
3 votes
Accepted

Async enqueuing causing no return value

Convert your helper method to a Promise: getHotelIdValue: function(component, caseId){ return new Promise((resolve, reject) => { var action = component.get("c.getHotelIdMethod"...
user avatar
  • 438k
3 votes
Accepted

Reduce the number of chainings in AURA

You don't need to chain most of the methods, because they're independent. Aura is perfectly capable of calling many different methods at once. As such, you can use Promise.all to call the methods. It ...
user avatar
  • 438k
3 votes
Accepted

Can I call an aura component in a lightning web component?

As stated in the documentation: IMPORTANT Aura components can contain Lightning web components. However, the opposite doesn’t apply. Lightning web components can’t contain Aura components. You'll ...
user avatar
  • 438k
3 votes
Accepted

Date.parse not working for different locales

You really shouldn't use labels for this sort of configuration. Salesforce provides things like Custom Metadata Types and Custom Settings for this purpose, where the field can be of Date type so no ...
user avatar
  • 28.1k
3 votes
Accepted

Apex class access issue with profile : summer 22 release

I am not 100% sure, why it is happening to you only now because in Winter '21 there is release enforcement which has been enforced. Restrict Access to @AuraEnabled Apex Methods for Authenticated Users ...
user avatar
3 votes
Accepted

Can a @wire method be used in the developer console?

@wire is an LWC construct. You cannot use it in Aura. You can, however, just call it directly: ({ doInit: function(component, event, helper) { let action = component.get("c.sayHello")...
user avatar
  • 438k
3 votes

Adding 1 hour to lightning:input type="datetime"

You can use the Date class in JavaScript to do this in just a couple lines of code: const theTime = new Date(component.find("startdatetime").get("v.value")); theTime.setHours(...
user avatar
  • 438k
2 votes
Accepted

Querying DOM elements generated by Aura components

Aura base components are converted to lightning web components under the hood. Your <lightning:inputField> ends up as the highlighted code line which is owned by a lightning-combobox (not part ...
user avatar
2 votes
Accepted

Why do LWC slots work inside this nested Aura component?

The lwc documentation states: !IMPORTANT You can’t pass an Aura component into a slot. This limitation also applies to a Lightning web component that’s nested in an Aura component. So, adding HTML ...
user avatar
  • 19.4k
2 votes
Accepted

Open existing Aura Component in VS Code

Hello michant and welcome to the community! I would recommend you to use the official SFDX Extensions in VS Code. Following this module you can configure VS Code and connect to an existing org https://...
user avatar
  • 646
2 votes
Accepted

Lightning Lookup Component - Icon out of Input when having label

For customizing elements as you are, it is recommeded to use the SLDS blueprints and tweak the code/css as needed. example, <div class="slds-form-element"> <label class=&...
user avatar
  • 19.4k
2 votes

Winter 22 Broke Event Listening Functionality

This was not an issue with Winter 22, it was an issue with a passport package I was using for authentication. I can confirm this method still works in Winter 22.
user avatar
2 votes
Accepted

Lightning Aura Component: Embedding child component has kind of Border

The border you are seeing is most likely coming from the surrounding Lightning Card Component. If you don't want a border, replace the lightning card with some other wrapper element. If you look at ...
user avatar
  • 19.4k
2 votes

Return to calling page from Aura overriding Standard Action

I ran into the sam issues and solved them by resorting to a Visualforce wrapping my Aura component: Quick Action UI not rendered as modal -> fake modal look with stencil images Inconsistent ...
user avatar
2 votes
Accepted

Return to calling page from Aura overriding Standard Action

I found one workaround for this particular scenario, although not the most elegant one, it works just fine: refresh : function(){ window.setTimeout( $A.getCallback(function(){ $...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible