Questions tagged [aura-attribute]
Describes an attribute available on an app, interface, component, or event of the aura framework
196
questions
0
votes
1
answer
36
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
50
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
0
answers
16
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
141
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
118
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
106
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
151
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
94
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="...
0
votes
0
answers
17
views
Aura Theme Background Image By Profile [duplicate]
I am trying to add functionality to an Aura Theme component for an Experience Site where the User see's a different Background based on their Profile. I can get the page to show up properly, but am ...
1
vote
2
answers
366
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
53
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
231
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
35
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
0
answers
28
views
When I trying to update datatable, Getting stuck for save button not remove after save [duplicate]
<aura:component controller="StudentController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
0
votes
1
answer
496
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
75
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
343
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
69
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
177
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
51
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
61
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
765
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
418
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
749
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
2k
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
227
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
635
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
365
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
907
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
399
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
584
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
283
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
420
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
251
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
1k
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
563
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
228
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
49
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
561
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
131
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
99
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 ...
0
votes
1
answer
339
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:...
0
votes
1
answer
584
views
Not able to get attribute value using component.get in init method
I am setting a attribute value in helper using component.set("v.value",result( and calling this helper in init handler to show/hide some values depending on this boolean value. But when I ...
1
vote
1
answer
400
views
Attributes & Expressions - Create a Packing List Item Component
I'm new to Salesforce and stuck on a challenge on Trailhead.
Inside an Aura component, I am supposed to create a custom attribute.
This seems to be the first step, but it fails regardless.
My code:
&...
0
votes
0
answers
186
views
Display Sparklines in a table in lightning components
How can I display sparklines based on my data inside table for each row dynamically in lightning Components.
I have tried to display them but sparklines are not displaying in my table last column.
...
0
votes
1
answer
1k
views
Passing wrapper class object list to child component from parent
I am trying to pass an attribute from parent component to child component. But the catch is this attribute is populated in apex controller using wrapper class. So currently it is a list of wrapper ...
0
votes
2
answers
401
views
Ligtning:recordEditForm onload , onSubmit ,onSucess action values
I have a doubt .During onLoad action ,are the record values the old and during the onSucess the record values are updated ? I want to send both the old and updated values of the record updated using ...
0
votes
0
answers
183
views
Aura:If results in label - field not value
When using aura:if, I can't get the value of the field to show. Unless I'm using lighting:outputfield the result is the field label. Is there something else I should do to ensure the value is produced ...
0
votes
2
answers
2k
views
Display space between aura properties
I use a custom label to display text in user language in my aura component.
My component has this line :
{!v.tr.Displaying} {!v.endUsersDisplayed} {!v.tr.users} {!v.tr.outof} {!v.totalNumberUsers}
I ...