Skip to main content
5 votes

How to develop Lightning LWC and Aura Components after Winter 24 Release without 10 minutes waiting and without cache clear and without Debug Mode?

It took me like forever but I found out that this as a new "feature": Changes to Aura components and Lightning web components (LWC) take up to 10 minutes to reflect in the UI Publish Date: ...
Uwe Heim's user avatar
  • 28.4k
3 votes
Accepted

How to reduce the heap Size while File Upload Aura

Every object you can use will take at least eight bytes of memory, four for the data type, and four more for the memory address in the heap. References do not use additional bytes of memory. So, if ...
sfdcfox's user avatar
  • 495k
3 votes

When to use 'Set a Default org' option in VS Code Salesforce

In the Salesforce CLI v2, you can use this command to set your default org: sf config set target-org my-scratch-org
R. van Diesen's user avatar
3 votes

Component. set value is not passing to the Helper Method

In JavaScript, maps do not properly JSON.stringify. Try this in NodeJS, your browser's dev console, etc: const map = new Map(); map.set('message','Hello World'); console.log(map.get('message')); // ...
sfdcfox's user avatar
  • 495k
3 votes

Aura component error: Failed to save MyfIRSTlIGHTNINGCOMPONENT.cmp: No COMPONENT named markup://aura:attribute found: Source

The format is (see documentation) <aura:attribute name="whom" type="String" /> So there a typo in both of the declared attribute. It should be, <aura:attribute name="...
Sachin Hooda's user avatar
  • 1,632
3 votes
Accepted

Is there a way to use node modules that have dependencies with Lightning Web Components?

Yes. To do so, install browserify or tinyify, and run the appropriate commands against the main module. The output will be a file suitable for including into a web browser. From there, simply follow ...
sfdcfox's user avatar
  • 495k
2 votes

How to adjust min-height of Salesforce Lightning input rich text component on load

Here's a solid option if you need auto-sizing: All you have to do is add the below code to your CSS file within your Aura or LWC. This automatically sets the appropriate size for the rich text area. ...
Derek Hoffritz's user avatar
2 votes

LWC registerRefreshHandler method throwing error via new lightning/refresh module

Per SF documentation, there are different methods of registering your listener based upon the Lightning Web security settings (LWS vs Lightning Locker). see: https://developer.salesforce.com/docs/...
Corey B.'s user avatar
2 votes

How to add 2 components with drag and drop in the same tab horizontally?

Unfortunately that isn't possible currently. However I've had the same request a few times before, so I've raised an idea here to try and get it prioritised: Multiple Columns within Tabs in Lightning ...
Callum MacErlich's user avatar
2 votes

Why Mobile Debugging does not work on MacOS13/XCode14/iOS16.4? Why no inspectable apps are shown in Safaris Develop-Menu?

I finally figured it out by trial-and-error. The reason was XCode version 14.3.1, which is at the time of writing (2023-06-29) the most recent version. 14.3.1. does not provide any inspectable apps ...
Uwe Heim's user avatar
  • 28.4k
2 votes

Quick Action on related list

This is alternate way not straight forward. First you need to create a lighting action button in Parent Object(Account). Then you go to Child Object(Contact) create a new Listview button pass the ...
siripuram dinesh's user avatar
2 votes
Accepted

Using a ConnectedApp to create a signed JWT from Apex (similar to Canvas Signed Request Authentication)

You can generate a JWT signed token using the Connected app via Apex. This is described in the Apex Reference guide. public class MyController{ public MyController() { Auth.JWT jwt = new ...
Mohith Shrivastava's user avatar
1 vote
Accepted

Is there a correct syntax highlighting for Aura Components in VSCode?

From your screenshot it appears you refer to the VSCode HTML built-in style checker. In VSCode's Settings you can find this as HTML: Validate: Styles. Toggle this. The underlying property is html....
Felix van Hove's user avatar
1 vote

Disable Pull To Refresh in Salesforce Mobile App with Aura Component

The event mentioned in release notes (and example shown for LWC) is a DOM event that you can simply send in Aura just like LWC (no need to configure a custom Aura event). In your controller of your ...
Kris Goncalves's user avatar
1 vote
Accepted

standard action 'New' and 'Edit' override with single aura component

If recordId is null, it is a new record, otherwise recordId will be the Id of the record you're editing.
sfdcfox's user avatar
  • 495k
1 vote
Accepted

How to over come salesforce known issue in aura component in winter 24 release?

You can handle this issue with simple tweak in your code using aura:if <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:...
sanket kumar's user avatar
  • 15.4k
1 vote
Accepted

Are Aura Components, Lightning Web Components and Visualforce pages based on MVC architecture paradigm?

Most frameworks reasonably can be described as MVC. It's not a particularly helpful distinction. With MVC, there are three or more components that are split into three roles, Model-View-Controller. ...
sfdcfox's user avatar
  • 495k
1 vote
Accepted

Use QuickText from custom LWC

hope everything goes well, Clarification on Custom LWC for Quick Messages: As I understand, it's possible to create a custom Lightning Web Component for Quick Messages (QM) within another custom LWC. ...
vivi-ramji's user avatar
1 vote

Use aura attribute to define button background color

You can use CSS variables to make this happen. Component Markup <aura:component implements="flexipage:availableForAllPageTypes" access="public"> <aura:attribute name=&...
sfdcfox's user avatar
  • 495k
1 vote

Use aura attribute to define button background color

There are a couple of ways of approaching this. Use a defined list of colours If you have a defined list of colours that you want the user to be able to select, you can add or remove styles from ...
Callum MacErlich's user avatar
1 vote
Accepted

How to generate e PDF in Apex from a VFP containing multiple aura components and attach it to an email

Per the Visualforce doc, PDF rendering is not supported if content is rendered by Javascript PDF rendering doesn’t support JavaScript-rendered content. You might need to refactor your Aura ...
cropredy's user avatar
  • 72k
1 vote

Access to fetch has been blocked by CORS policy - LWC

You should import cors and add all your URL in safelist. You can try with below code import cors from "cors"; const safelist = ['http://example1.com', 'http://example2.com'] const ...
A.K.'s user avatar
  • 708
1 vote

Is it possible to hide custom picklist field dependent on other picklist in Aura?

Yes this is possible using conditional rendering of the subsequent picklists via the <aura:if> tag. The Aura developer documentation covers this under the Conditional Expressions and Best ...
Callum MacErlich's user avatar
1 vote
Accepted

Implementing a Spinner in Aura Lightning Components

Given the "Filter" button is contained within your parent component, you can handle this quite simply using a Spinner that is added on clicking of the button and then Component Events fired ...
Callum MacErlich's user avatar
1 vote

Exceptions on Client side Aura,LWC

JavaScript and Web Platform APIs throw or reject error types like ReferenceError, TypeError and so on. These all inherit from the Error object which has the following properties: name – Indicates the ...
Renato Oliveira's user avatar
1 vote

recordViewForm not pre-populating input fields for certain profiles in aura

Fixed! Make sure the apex controller class used is accessible to your profile ! I had completely forgotten to check that detail and it cost me two days on investigating.
confusedstudent's user avatar
1 vote

Is it possible to use Custom label with Options attribute in Aura?

You could use the datasource design attribute for your aura attribute. It allows an Apex class to be used as the source of the options. In the apex class you can return the custom labels, whether ...
Anton Kutishevsky's user avatar
1 vote

LWC registerRefreshHandler method throwing error via new lightning/refresh module

I was troubled by the same issue and came across this query of yours. Finally checking this box worked for me: Settings -> Session Settings -> Use Lightning Web Security for Lightning web ...
eZsfdc's user avatar
  • 11
1 vote

[ResizeObserver is not a constructor]

Building off of @MayTheSForceBeWithYou answer, I had a library that I manage the build/bundle process of that used ResizeObserver that I was trying to get added to a LWC. Since I manage the build/...
Michael Cavallaro's user avatar
1 vote

DML on PresenceUserConfigUser

We had a similar request. DML can be performed using composite REST API. Note that only 25 records can be inserted at one callout. SAMPLE CODE: public class requestBodyWrapper { public List<...
Sunil BS's user avatar

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