How to navigate in Lightning Out with Visualforce?
Question I am using Lightning Components within a Visualforce page to override a standard button, which is currently the only way to do so. The problem is that I need to redirect the user to a new record page after a specific action. However, the typical navigation methods such as…
How to Use Field Sets in Lightning?
Question: I have been trying to create a Salesforce Lightning input form based on fields from a field set. Since an Aura-enabled Apex method cannot return an entire field set directly, I attempted to convert it into a JSON string and pass it to the Lightning component. While this approach…
LWC Datatable Filtering with Infinite Scrolling?
Question: I’m struggling to filter my Lightning Web Component (LWC) datatable while using infinite scrolling. When applying a filter, the component seems to duplicate rows and also fails to trigger the onloadmore event for infinite scrolling. I have a custom datatable that loads an initial set of five records from…
How to Navigate from LWC to Visualforce Page with Parameters?
Question How can I navigate from an LWC component to a Visualforce page with parameters, while ensuring compatibility with Salesforce Communities? The LWC framework offers the NavigationMixin.Navigate functionality, which allows for obtaining URLs and performing navigation to generated URLs. This supports various page types, as detailed in the documentation. However,…
Why am I getting the Uncaught TypeError in LWC?
Question: I am working with a Lightning Web Component (LWC) and trying to update a field on a Contact record, but I am encountering the following exception: Uncaught TypeError: ‘set’ on proxy: trap returned falsish for property ‘Name’ Here’s the code I’m working with: HTML Code: JavaScript Code: Apex Code:…
How to Use a Picklist in a for:each Loop in LWC?
Question I have a requirement to display and edit records in a table. These records need to be saved and will also be used to create different objects. Currently, I am using the following code, which works for displaying and editing fields. However, I have two questions: Here is my…
LWC Community Redirect to Home Not Working?
Question: I am modifying an LWC component in a Salesforce Experience Cloud (Community) site to redirect users to the Home page when they click on a logo. The component’s HTML and JavaScript code are as follows: CommunitySiteLogo.html CommunitySiteLogo.js When clicking the logo, the redirection does not work, and I encounter…
Access force:recordData Values During Init Handler?
Question: Is there a way to access values from force:recordData in the init handler of an Aura component? I am trying to fetch the Name field of an Opportunity record in the doInit method, but it throws an error saying:Cannot read property ‘Name’ of null. Here is the current implementation:…
Install Managed Package via Salesforce DX CLI?
Question: I am working on a CI/CD setup using Salesforce DX CLI and Travis CI. As part of my process, I need to deploy Lightning components that depend on a managed package available in the AppExchange. How can I install a managed package using the Salesforce DX CLI so that…
Fetching URL Parameters in a Lightning Component?
Question: I am working with Communities in Salesforce Lightning and trying to fetch URL parameters directly into the attributes of a Lightning component without using JavaScript. For example, given the URL: https://www.someurl.com/page?name=somename&surname=somesurname I want to bind the name and surname parameters directly to attributes in my Lightning component so that…

