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 ...
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 ...
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 ...
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:...
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 ...
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 ...
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'...
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 ...
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 ...
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 ...
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 { ...
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.
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:...
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 ...
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"...
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 ...
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 ...
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 ...
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 ...
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")...
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(...
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 ...
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 ...
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://...
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=&...
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.
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 ...
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 ...
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(){
$...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
lightning-aura-components × 9321lightning × 2986
apex × 974
javascript × 904
lightning-experience × 883
aura × 743
lightning-apps × 670
lightning-design-system × 512
lightning-web-components × 490
visualforce × 448
community × 419
locker-service × 301
css × 213
javascript-controller × 210
salesforce1-app × 200
lightning-events × 192
slds × 185
lightning-community × 176
aura-attribute × 160
lightning-datatable × 144
aura-iteration × 118
controller × 111
visual-workflow × 106
community-builder × 89
quickaction × 88