Questions tagged [aura-attribute]

Describes an attribute available on an app, interface, component, or event of the aura framework

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

How to stop CountDown Timer (Aura Component) automatic on Saturday and Sunday Also on Holidays and Resume auto on Working Days for Ex ;- Mon-Fri?

Aura Component <aura:component controller="updateTATaura" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,...
user avatar
  • 1
0 votes
0 answers
15 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 '+...
user avatar
0 votes
1 answer
55 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 "...
user avatar
  • 1,738
0 votes
1 answer
29 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 ...
user avatar
0 votes
1 answer
52 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 ...
user avatar
0 votes
0 answers
18 views

it is necessary to check what type of object comes

i create modal window! when i click edit i get id, but i don't know how check type of object public class AccountTableController { @AuraEnabled public static List <Account> getAccountList() { ...
user avatar
0 votes
1 answer
82 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 ...
user avatar
0 votes
0 answers
26 views

Aura design component formula

I am using design attribute with boolean to pass value into component, but i want pass some formula like 'value !=null'. How can i do it? It works only with true or false. I know that i can pass ...
user avatar
  • 41
0 votes
0 answers
50 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 ...
user avatar
1 vote
1 answer
42 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 ...
user avatar
  • 15
1 vote
1 answer
82 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&...
user avatar
  • 645
0 votes
0 answers
41 views

component.find('phone').get('v.value') is giving null and throwing [Cannot read properties of null (reading 'phone')] error

i am encountering error [Cannot read properties of null (reading 'phone')] Component <aura:component> <aura:attribute name="testObject" type="sObject" default="&...
user avatar
0 votes
1 answer
77 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 ...
user avatar
0 votes
2 answers
119 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. ...
user avatar
0 votes
0 answers
56 views

Aura handler Invalid attribute "name"

I want to fetch records using Aura component but I get the Invalid attribute "name" error in <aura:handler name="init" value="{!this}" action="{!c.myAction}" ...
user avatar
  • 21
0 votes
0 answers
36 views

Spinner is not covering the modal body after scrolling down

I added a spinner in the modal body it is working fine, but when I scroll while еру spinner is loading, it does not cover the lower part of the modal body. I want to cover the parts after scrolling ...
user avatar
  • 1
0 votes
1 answer
63 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 ...
user avatar
  • 1
0 votes
0 answers
46 views

how to Upload icon and store the url of the uploaded image in text field using aura component

Hi I'm new to lightning component. i want to upload icon and store uploaded icon url into text field. test.cmp <aura:component controller="TestBuilderLightning"> <aura:attribute ...
user avatar
-1 votes
2 answers
265 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 ...
user avatar
  • 37
1 vote
1 answer
95 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=...
user avatar
1 vote
1 answer
77 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="...
user avatar
0 votes
1 answer
130 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 ...
user avatar
0 votes
0 answers
54 views

Unable to display error message when field is required and disabled

In my aura component i have lightning input where the value i am auto populating. The ask is to restrict user from entering any value. Have made the field disabled and required. But if the value is ...
user avatar
  • 9
0 votes
1 answer
774 views

Why do I get the "cannot read property 'h' of undefined" error?

//cmp <aura:component controller="CurrencyExchangeController" implements="force:appHostable, flexipage:availableForAllPageTypes"> <aura:attribute name="...
user avatar
0 votes
1 answer
353 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 ...
user avatar
  • 1,258
0 votes
3 answers
67 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 ...
user avatar
  • 9
0 votes
1 answer
69 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" /> &...
user avatar
0 votes
1 answer
20 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 !=...
user avatar
  • 1,071
0 votes
1 answer
250 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 ...
user avatar
  • 33
1 vote
1 answer
46 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:...
user avatar
  • 75
0 votes
0 answers
36 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 ...
user avatar
0 votes
1 answer
88 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:...
user avatar
0 votes
1 answer
196 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 ...
user avatar
1 vote
1 answer
220 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: &...
user avatar
0 votes
0 answers
113 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. ...
user avatar
0 votes
1 answer
505 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 ...
user avatar
  • 295
0 votes
2 answers
44 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 ...
user avatar
  • 21
0 votes
0 answers
81 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 ...
user avatar
  • 377
0 votes
2 answers
617 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 ...
user avatar
0 votes
0 answers
23 views

Aura attribute as type object - not calling its fields with __c at the end

I am editing someone else's code, having trouble understanding the below code. Here creativeRequest is as type object, but its fields are called without __c at the end. I have added a new field to ...
user avatar
  • 491
0 votes
1 answer
556 views

How do I add fieldinput values to an object in Lightning?

Im working on a component where a table is generated by data entered into 3 input fields (Year, Make and Model). I have a function where the user's inputs are assigned to their corresponding variable ...
user avatar
0 votes
3 answers
717 views

Reading Apex enums in LWCs: "AuraEnabled fields cannot be static" when annotating enum with @AuraEnabled

I have a service class with some error types: public with sharing class ServiceClass { public enum ErrorType { ERROR } } And a controller method: @AuraEnabled(cacheable=true) public static ...
user avatar
  • 1,151
0 votes
1 answer
238 views

I want to populate respected account on account field when any opportunity select

I have created a component and i created a onchange event on opportunity field it called a controller method and this controller method called a apex method with opp id and return acc id so i can ...
user avatar
2 votes
3 answers
1k views

Unique Identifier of a Lightning Component Instance

I'm working on a relatively simple Aura component, but I'm running into an issue. I'd like to create either a cookie or a localStorage item for a component when a user takes action on it (closes it) ...
user avatar
0 votes
0 answers
517 views

How to change the value of aura:attribute inside a aura:iteration when a condition is met?

I want to change the value of aura:attribute when a particular condition is met inside an aura:iteration. This is the code: <aura:component> <aura:attribute name="products" type="List" ...
user avatar
0 votes
3 answers
42 views

salesforce : AccountId is not able to get it form lightning component js controller, giving undefined error

Comp: <aura:attribute name="ServiceRequestRecordFields" type="WorkOrder"/> <force:recordData aura:id="recordEditor" layoutType="FULL" ...
user avatar
1 vote
1 answer
356 views

component.set does not pass value from helper to controller via component

I try to set a value in my lightning component via the helper function, but it does not set the value in the component, and I get the wrong value when I try to do component.get in the controller. Here ...
user avatar
0 votes
1 answer
158 views

Aura - load boolean field value into toggle on doInit not working

I'm trying to take the boolean value of a checkbox field and load it into a toggle via the doInit but it's not working. Am I doing something wrong? When I debug it says osiValue is undefined Happy ...
user avatar
  • 616
-1 votes
1 answer
293 views

Need help in SLDS

enter code here Need to create design like this in screenshot. I am ready with the component but not sure what SLDS i can use to : 1) Showing Green Border top of each section 2) Display fields in 2 ...
user avatar
  • 33
0 votes
3 answers
62 views

Does not return contact ID to go to another page

When I check which value is returned at the click of a button, null always returns to me. And when I click on the button to go to another page, it always goes to another page (it makes no difference ...
user avatar