Questions tagged [aura-attribute]
Describes an attribute available on an app, interface, component, or event of the aura framework
203 questions
0
votes
0
answers
26
views
Different Aura component List behaviour in scratch org vs production
I have this strange issue using lists in Aura. I have checked basic things like Lightning Web Security (enabled) and Lightning Debug Mode (enabled) but can't work out why this is happening.
The code:
&...
1
vote
1
answer
42
views
How to format a number with 6 decimal places using `$A.localizationService` in an Aura Component?
I am working on an Aura component where I need to format a number based on the user's locale, specifically for Greek formatting. For example, when the user has a Greek locale, the entered number 123....
2
votes
0
answers
219
views
CLIENT_DOM_XSS attack being reported by Checkmarx even though we use lightning:input
We use below code to capture Account's FirstName, LastName and some other values.
<aura:attribute name="currentAccount" type="Account"/>
<lightning:input aura:id="...
0
votes
0
answers
26
views
What type of aura component is this?
Here you can see I've created two custom components that show your own open opps and tasks when viewing your own user record page but they show someone else's when you're viewing theirs.
I cloned the ...
-1
votes
1
answer
212
views
Sanitize input in Aura component
Checkermax report has identified Client DOM XSS issue for the input parameter whose value is in the format of !caselst.casenumber
Here caselst is the variable for the list of cases. List of cases are ...
0
votes
1
answer
171
views
How to access and print lists inside the Aura component
In the below code:
1.Initially aura component contains the init which then calls the DoInit in the controller.
2.Then from the controller we are calling the helper file to get a list of Randomized ...
0
votes
0
answers
38
views
aura:id in sObjectLookup - aura component
This is a code snippet of my aura component where i used sObjectLookup -
<c:sObjectLookup fieldLabel = "Contact" objectAPIName = "Contact"
...
0
votes
1
answer
38
views
Selected value getting lost in custom sort Aura
I have created a custom Aura component to add quote lines in a Quote. We have a custom Product in our system. When someone selects that product, they get options for how many times they want to add ...
0
votes
1
answer
58
views
Aura Component Attribute misunderstanding
I am working on a project where previously some SF developer has done some Aura components. I don't have previous experience in frontend or javascript at all, or at least I don't have deep ...
0
votes
1
answer
106
views
No ATTRIBUTE named foo:bar.attribute found from a managed package
I'll try to be brief as I'm sure this is a basic skill issue with an obvious solution that I'm missing:
I have installed a managed package from AppExchange containing an aura component (From here on ...
1
vote
1
answer
286
views
Boolean aura attribute not working in lightning component
I came across a weird behaviour on our sandbox org which is currently on Winter 24. We have several lightning components that we use in all different kind of screen flows.
For whatever reason aura ...
0
votes
1
answer
71
views
Data Not returned from apex to Aura component
I am trying to insert record and return recordId from apex class to aura component. But i could not log the data inside setcallback method.
Aura Code :
try {
var action3 = component.get('c....
1
vote
1
answer
494
views
LWC - How To Loop Through A List With data-aura-rendered-by attribute?
is there any way we can loop through a list of object with this code snippet?
It works okay when the list return 1 record. However, if the list has more than 1 record, it cannot rendered (display).
...
0
votes
2
answers
524
views
Use aura attribute to define button background color
I am wondering if it's possible to use an aura attribute to set the button background color of a button.
I was able to statically set the background color using CSS and by giving the button a defined ...
0
votes
1
answer
370
views
is there a way to get min and max attribute in a lightning:input in js controller in aura component
<lightning:input type="number" name="min_perc" aura:id="required" required="true" class="label-text minPerc" min="0" max="99" ...
2
votes
1
answer
388
views
Is it possible to use Custom label with Options attribute in Aura?
I'm trying to replace hard-coded emails with custom labels in the Aura component and am getting the below error message.
failed to save psa_selectfromadd.cmp: cannot mix expression and literal string ...
0
votes
0
answers
146
views
Can we call multiple javascript function onKeyUp event? because i am not able to do it
<aura:set attribute="actions">
<div onkeyup="{! c.handleKeyUp }; {!c.handleChange}" >
<lightning:input
aura:id="...
1
vote
2
answers
723
views
How to store all lightning input values in object type attribute
My requirement is to override the standard new button which creates a record of the Employee__c object.
I have designed the UI with the help of the Aura component but I am stuck while saving the ...
0
votes
1
answer
101
views
Set email body and subject in aura component lightning email tag
<lightning:formattedEmail value="[email protected][email protected]⊂ject=My%20subject &body=The%20email%20body"
label="Send us your feedback&...
1
vote
1
answer
480
views
"Failed to parse CONTROLLER for FaceMesh in Aura component"
I am trying to use the FaceMesh object from the MediaPipe library to detect and track faces in a video stream in my Aura component. However, I am getting an error when I try to save my component that ...
0
votes
1
answer
43
views
The upcoming data not proper show in aura lightning Data Table?
I write any object query and not mention ID filed but in table the id field show automatically so I am not getting what exact problem behind that and when I don't enter the object name then the object ...
0
votes
1
answer
739
views
Unescaped Attribute Value XSS - how to sanitized event handlers in lightning aura component
How do we sanitize variables/controller calls [v.onRepeat/c.controllerCall] used in onclick/onchange events as per SonarQube standards.
Here is the sample code :
Issue 1 :
<lightning:buttonIcon ...
0
votes
0
answers
121
views
Is there any attribute in aura components to bypass validations like 'immediate = true' in visualforce page or 'causesvalidation = true' in asp
I have a record creation form with lightning:recordEditForm tag. I used required = true to some of the inputField values. I have a cancel button at the bottom of the page. When I click 'cancel' button ...
1
vote
1
answer
445
views
Use Attribute String[] (2 Dimensional Javascript Array)
I have a Lightning component with a Javascript jQuery Data Picker for use in a Flow Screen to create child "Subscription" records.
I have configured the Javascript to allow input of Date ...
0
votes
0
answers
94
views
From Apex server data is not coming to Aura components
apex wrapper :
public with sharing class DemoWrapper {
public class Timesheet{
@AuraEnabled public String employeeId {get;set;}
@AuraEnabled public String employeeName {get;set;}
...
0
votes
1
answer
257
views
How do I pass Aura v.recordId to a string literal attribute?
I am trying to call an OmniScript from a quick action.
Documentation provides an Aura wrapper for this purpose.
The Omni Script takes recordId as ContextId.
Aura passes recordId as {!v.record Id}
The ...
0
votes
1
answer
62
views
How to reset page on cancel button using RecordEditForm in salesforce aura components
Cancel button is not working while using recordeditform
0
votes
0
answers
62
views
Can we call custom label in application event while setting the event attribute if yes then what will be the syntax. see my docNotSignedAtr
function(response){
//Bug-8928---Prod issue resolution start-Amit>08-02-2022
if(response == null){
console.log('null response from requestSignedDocument '+...
0
votes
1
answer
958
views
Using Aura attribute variable in static resource
I have some aura attributes on my Aura component
<aura:attribute name="appName" default="servicePortalVar" type="String"/>
I would like to use this variable "...
0
votes
1
answer
514
views
Formula Field Is Undefined In Aura Component
I am trying to populate some lightning: inputs in an aura component with a few values. In the example below, {!v.enrollmentRecord.Comments__c} works fine but {!v.enrollmentRecord.OPEID__c} is ...
0
votes
1
answer
1k
views
what will be equivalent code for (this.template.querySelector('lightning-textarea').value += '\n';) in aura?
I have written this in aura as
var newline ='';
newline +='\n';
component.set("v.input",newline);
but ...
3
votes
1
answer
3k
views
Pass value from flow to custom component and handle change
I am new here and have a question about flow. I am passing value to my aura component with design, but I cannot handle change. I am passing value from text field to my custom component, but it doesnt ...
0
votes
0
answers
347
views
Customizing "lightning:availableForFlowActions" for Aura Action in flow
In principle, I want to be able to customize the information displayed to an admin when they access and insert a custom action for a flow. For example, I'd like to have a limited picklist for the user ...
1
vote
1
answer
1k
views
Component.find returns elements not on page
I have an array of sections, which are objects that each contain an array of fields. If I reset this array and then look for the fields using component.find(), it returns many more fields than display ...
1
vote
1
answer
943
views
Can the "Label" be set for an aura component? (Specifically for custom Utility Bar component)
I'm creating a Utility Bar component using Aura.
There does not appear to be a way for me to set the default "Label" or "Icon" for the component when showing on the "Custom&...
0
votes
1
answer
462
views
Initially default selected value returns null during button click in aura component
I made Temp Reservation as default selected option. Initially when i click save button it returns null instead of Temp Reservation. once i change the option it returns the selected value. Anyone helps ...
0
votes
2
answers
1k
views
Use Attribute to set background Color on Lightning Compoents
I would like to use an attribute to set the Background Color on the my Lightning Component.
I attempted to apply the solution in the post below, but was unable to adapt this for my Component.
...
1
vote
1
answer
637
views
Aura UtilityBar Components: How to set default component dimensions on the Lightning App Builder and prevent modifying of these values?
I am currently developing an Aura component for the UtilityBar and I am having trouble setting default values for the component on the App Manager screen. For an example: I would like to set height ...
-1
votes
2
answers
665
views
Keep selected rows persistent in lightning datatable between two tabs
I have 2 lightning tabs, each of them have a lightning data table in it.
1.The first tab displays a search filter and displays options accordingly
2.Each tab has a checkbox and you can select the ...
1
vote
1
answer
317
views
Failed to save CF_UC_NRI_Details.cmp: c:CF_UC_NRI_Details:3,125: Invalid attribute "implements": Source
<aura:component >
<aura:component implements="flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes" access="global">
<aura:attribute name=...
1
vote
1
answer
558
views
Control binding for aura attribute being passed from parent to child
I am taking record id and object name as input from user
<aura:attribute name="recordidinput" type="Id" />
<aura:attribute name="objectname" type="...
0
votes
1
answer
280
views
How do I display the dynamics of currency exchange rates? [closed]
My task is to implement the ability to display the dynamics of currency exchange rates, by selecting the start date of the period and the end date?
Maybe something like this would suit me:
But I'm a ...
0
votes
1
answer
2k
views
Disable "Please Fill Out This Form" bubble on Aura Component
UPDATE:
The behavior is default salesforce behavior. It is based around the button component. Notice in the code below that there is a type="submit". When this is set on the button within a ...
0
votes
3
answers
706
views
cant set attribute of type object
I am getting the response value from apex controller but it is not setting in my attribute beerList. what could be wrong?
controller
public class BeerSearchAuraService {
@AuraEnabled
public ...
0
votes
1
answer
277
views
Bind function in aura
Need to do without CSS+HTML
I want to show a custom label on hover. I am using below code
**HTML*
<aura:attribute name="isHover" type="Boolean" default="true" />
&...
0
votes
1
answer
72
views
If conditions while passing paramters to child component in aura
I am trying to pass a value from parent to child component in the following manner
<c:contactSelect accountId="{!IF(v.proposal.CurrencyIsoCode != 'US' && v.proposal.BillingCountry__c !=...
0
votes
1
answer
700
views
Null id is getting pass to flow in aura component
I have created 2 component. from Component1 I'm calling Component2 to open flow in Modal which is working as expected. But when I'm passing Id from Component1 to Component2 it is showing as blank in ...
1
vote
1
answer
165
views
aura:attribute shared between components
I'm new in Salesforce, currently following the trailhead "Input Data Using Forms".
Well I've one main component which include 2 children components:
<aura:component >
<aura:...
0
votes
0
answers
103
views
How do I open a new form and query the database at the same time?
On the current page, I have a "New" button that opens a new form, where I need to fill in the "Account" field as well. And I want to get a list of "Account" values in ...
1
vote
1
answer
580
views
Can't Pass aura:attribute to force:recordData recordID Field
I'm probably missing something crazy simple, hopefully someone here can clear this up for me. I have a simple component as follows:
<aura:component implements="flexipage:...