Questions tagged [aura]

Aura is an open source UI component framework for developing dynamic web apps for mobile and desktop devices. Aura provides a scalable long-lived lifecycle to support building apps engineered for growth. Aura supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Java on the server side. Aura is the underlying technology behind Lightning Components in Force.com.

Filter by
Sorted by
Tagged with
2
votes
0answers
28 views

LockerService Range.commonAncestor readonly field returns a function instead of a Node (or SecureElement)

I've found a strange behavior with LockerService and I do not understand the current behavior. I want to use Range.commonAncestorContainer but when I try to use this getter, I get a function instead ...
0
votes
1answer
30 views

A parameter to an Aura Action is undefined. But not always. Why?

I have a particularly strange issue where one, and only one parameter to an Aura Action is undefined. Worse, it seems to be nondeterministic when it is undefined, and when it actually works. Relevant ...
0
votes
0answers
14 views

Salesforce Multi select Search box issue in ligtning component

We have a custom lightning component where a user would choose one of 5 objects. Then there is a search box where the user searches for the records and can add multiple records. while displaying ...
0
votes
1answer
14 views

lightning:inputField styling on picklist data type - strange format

With the below markup, the output is as per the screenshot. This is incorrect because the picklist values should all be displaying when one selects the field, instead of them being displayed on a ...
0
votes
1answer
36 views

Position fixed problem lightning

I have a custom lightning component on a record detail page. The component has a message which i want the user to be alerted. Everything works great but now i want the banner to scroll also if a user ...
0
votes
1answer
20 views

Can I put actions tab on custom new object page?

I've created a Lightning Component to use for the 'new' action of my custom object. However, I've been asked to put the actions tab, particularly the 'new task' action on the page. I created the ...
1
vote
1answer
20 views

Deselect checkbox on click of a button

I have the following code in my lightning component <lightning:input type="checkbox" label="Life" aura:id="checkboxField" value="{!v.isLifeChecked}" ...
0
votes
1answer
20 views

Need to pin a lightning component so it is always visible on the page

Let's say i have a custom lightning component which have some kind of message embedded. When i add my custom lightning component to a record page and the user is viewing the record page where the ...
0
votes
1answer
28 views

How to display Several URL"s in toast message

I have a requirment where i need to show some alert messages to the user. The alert message should be non blocking and if the user scrolls the page down, the alert should also move so that the user ...
0
votes
0answers
39 views

Salesforce1 QR Code Reader

We are working on one of our client requirement to have a barcode scanning functionality on Salesforce1. Requirement is just to scan a barcode from the app which should navigate to the record within ...
1
vote
0answers
18 views

Aura component with google map

I'm trying to create an aura component with an embedded google map (the new lightning: map thing) that would show all of our accounts on the map. I have two problems: The height of the component is ...
2
votes
2answers
147 views

Curious to know reasons, why Aura is not allowed in LWC

Recently I was trying to implement(and migrate) my existing functionality with LWC for learning purpose. However later I found that, LWC is allowed in Aura, but aura is not allowed in LWC. Curious ...
0
votes
1answer
27 views

Lightning combobox with “new record” Interaction

I need to implement a combobox like on the next img: Until now Im using this line of code: <lightning:inputField variant="label-stacked" fieldName="Contact"/> I have read the whole ...
0
votes
1answer
14 views

How to get value of inputSelectOption in controller lightning

I have a lightning component which fetches all the recordtypes of an object. The user kan select the desired recordtype from a picklist. How do I get the selected label or value in my controller. I ...
0
votes
1answer
17 views

on clicking save, record is not inserting using lightning component

im new to lightning, i created a lightning component to insert contact records,but when i click on save record is not getting saved.here is my code apex controller public class cninsert { @...
0
votes
0answers
20 views

Calling a server side action from aura:method

Components A, B, C are parent-child linked respectively and I'm firing B's search action as aura:method, during it's callback I'm also firing the C's refresh action, which is where I am getting id ...
0
votes
1answer
26 views

Create aura:attribute with a dynamic type

I am attempting to put a custom lightning component into a flow, and I need a record collection variable. The problem is that I don't know what object the record collection variable is, and flows don'...
1
vote
1answer
25 views

Applying styling ONLY to specific class within another class in Aura component

Is there a way to apply a CSS rule to a specific class only if it is within another? For instance, if I wanted to make the background black for a class black within the class container but not set ...
0
votes
1answer
28 views

Unable to render an aura component using “lightning:container” in a visual force page

i am trying to use an aura component using lightning:container (which renders a static resource react app), in a visual force page. for that i have created a classicAppDep.app with this code - <...
0
votes
1answer
21 views

Lightning Aura Component works fine in sandbox but not in Production

We have a generic lighning aura component for Custom Add and Remove Products on Quote and Order object which is being called on an action in lightning . The component works fine in the sandboxes but ...
0
votes
2answers
36 views

Benefit of developing managed package in a scratch org with namespace

Why should I develop my managed package in scratch orgs that have a namespace? As opposed to having no namespace. As far I can overlook it only a handful metadata seem to need a namespace prefix. For ...
1
vote
1answer
52 views

How to navigate to one component to another by passing parameters

I'm new to Salesforce. I have just started with lightning Aura components. I want to understand simple workflow of aura. Can anyone help me with the code for below requirement. Thanks in advance. ...
0
votes
0answers
11 views

How to make outputText account for pasted images?

This is what I currently have <apex:outputText value="{!something}" escape="false"/> and it works for text as well as uploaded images. But it doesn't work with images that are copied and then ...
0
votes
1answer
27 views

Creating dynamic component with buttons, events not getting raised

I have created dynamic component but somehow the event is not getting generated : $A.createComponent( "aura:unescapedHtml", { "value": '<div class="slds-notify_toast slds-theme_default"...
0
votes
0answers
19 views

aura:iteration Data table: Cannot find Aura:id for the lightning input used inside the aura:iteration

i need to use the aura:id of lightning:select. the table is rendered inside aura:iteration. there is another field(table column field) inside table that needs to be shown based on the the select ...
2
votes
2answers
92 views

Is system.schedule(…) @AuraEnabled?

I would like to know if system.scheduled is aura enabled or not. If not is there another methode that can replace it or a way to make it enabled? Edit final public class Plan { @AuraEnabled ...
5
votes
0answers
94 views

External Objects not supported in Lightning Web Components?

I'm trying to query an External Object inside @AuraEnabled method, but I'm getting the following error in LWC: sObject type 'public_accessories__x' is not supported. The method works perfectly ...
0
votes
0answers
29 views

Block Mousewheel Event Change Input Type Number

I'm struggling in block mouse wheel to change input type number. We right now have 300+ input types number in a process. Lucky, all the components share the same father. I'm trying in the parent ...
0
votes
1answer
22 views

@AuraEnabled methods and fields : field declared as @AuraEnabled not available in @AuraEnabled method

I am new to lightning and i have written a controller for the component. public class TScontroller{ @AuraEnabled public Case caseDetail {get;set;} . .// few @AuraEnabled variables declared as above ....
1
vote
1answer
35 views

Standard lightning date picker has a faulty display

The date picker is not displaying properly, as shown in the image below. The last column (Saturday) seems to be bleeding off the edge of the calendar. This faulty display does not change when I zoom ...
0
votes
0answers
14 views

Can i Hide a field from a lightning:recordForm and populated before submitting? Im getting the fields from recordTypeId [duplicate]

Controller init : function(component, event, helper) { //get record type id var reportType = component.get("v.pageReference").state.recordTypeId; console.log(component.get("v....
-1
votes
1answer
54 views

How to mark duplicate record as checked [duplicate]

How to unchecked duplicate account record that have opportunity/contact or both. Default duplicate__c is false. Example: Suppose, there are total 3 duplicate name record, with one duplicate name ...
3
votes
1answer
60 views

When and why do I need to perform an .isValid() check?

This document - Modifying Components Outside the Framework Lifecycle - says the following: You don't need a cmp.isValid() check within this setTimeout() call as the cmp.set() call doesn't do ...
0
votes
1answer
54 views

Embedded Chat not working in IE and Edge browser with Web components bundle.js

We use web components for header and footer in our application. When we try to integrate Sales force embedded chat, it's working fine in all browsers except IE11 and Edge. When we remove ...
0
votes
1answer
54 views

Lightning empApi auto refreshing working for same object different record too

I am using lighting empApi to refresh the component whenever a case record is created. I have a trigger & apex class in case object that fires and update the platform event object. In Detail-...
6
votes
1answer
82 views

When and why to use $A.reportError?

In the documentation Using JavaScript Promises it is mentioned To show an error message in a catch() method, use $A.reportError() Why would I want to use $A.reportError that at all? I could use ...
0
votes
0answers
18 views

I'm having trouble. I would like if the test field is selected. Test2 is search-enabled

<c:customLookup aura:id="teste" objectAPIName="teste" IconName="custom:custom36" label="teste" selectedRecord="{!v.teste.Id}" /> I tried to use the onLookupChange of the lookup itself <c:...
1
vote
1answer
118 views

Any LWC on a record page layout in a subscriber org throws Internal Error

We have LWC's created in our managed package. They are marked as exposed. Whenever we try to include one in a record / flexi page in a Subscriber's org we are getting an internal server error with an ...
0
votes
0answers
13 views

ErrorObjectNotFound javascript error on upload csv

I was working on a feature to load records as picklist values on to a custom lookup component from a csv upload. The functionality was working as expected, but I get an error that says "...
0
votes
1answer
24 views

I am inserting single record with single file.but how to insert single record with attach multiple files using lightning input

i Am inserting single record with single file but how i can insert single record with multiple file in single transaction using lightning aura component.please let me know. please refer this link ...
0
votes
1answer
29 views

What does component.get('v.recordId',value) do?

I am reading a component and I found the following line: component.get('v.recordId',accID); I didn't know there was syntax like this what does it do ? I logged it and confirmed that it works, but I ...
0
votes
1answer
30 views

Aura Component don't catch event from another one

Lightning Event: tripEventer, attribute - trip, Trip__c Component Item: <aura:registerEvent name="openTripEvent" type="c:tripEventer"/> <lightning:button class="slds-align_absolute-...
0
votes
2answers
47 views

Lightning Component hiding/disabling button

I have created a Lightning Component that will update a custom field whenever a button is clicked. I want the button to be hidden when {!Go_No_Go_Question__c} is blank. Right now, the button is ...
3
votes
1answer
74 views

List on Wrapper class not visible in lightning component

I have an Aura component and I want to iterate through a wrapper class of objects, which has two lists as properties. While I can iterate through the wrapper class list, my lists come up as null when ...
1
vote
2answers
86 views

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

I would like to change the min-height of a Salesforce Lightning rich text component. The original code (old vendor) used a long text area and Aura. I changed it to rich text area using lightning:...
0
votes
2answers
41 views

Remove rows from Datatable in lightning controller?

Is it possible to remove rows from custom datatable within JS controller that is without making server call. <th scope="row" class="slds-text-align_left" style="width:3.25rem;"> ...
0
votes
2answers
75 views

how to remove header of lightning component [closed]

Does anyone know how to delete the header of lightning datatable, and how to put data parts only? I would like to make table like the attached image. Red cross parts is supposed to be removed.
0
votes
2answers
85 views

Lightning Component hiding button depending on a value of a field

I am trying to create a Lightning Component to that has a functionality to update a field value Submit_Go_No_Go_Question__c, and hide the button whenever a field Go_No_Go_Question__c is not blank. ...
0
votes
1answer
135 views

How to force width resizing of lightning:datatable?

I've structured a component in a way that either a lightning:datatable aura component or a lightning:dualistbox. The dual list box is used to set the columns attribute of the data table. The issue is ...
4
votes
3answers
294 views

what's the equivalent of helper in LWC?

Could be a very basic question. I am wondering how I can call a function from another in LWC. for eg: export default class testUtil extends LightningElement { hangleChange(evt){ this.inputcheck =...