Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
23 views

How can I display a spinner when switching between lightning:tabset tabs?

I recently asked a related question about how to display the lightning:spinner while waiting for a component to render. Although I found a way to make it work, and have thoroughly reviewed the 'Events ...
0
votes
1answer
31 views

Migrate Aura components with lightning:actionOverride to LWC

In the LWC documentation I couldn't find anything on how to migrate Aura components using the lightning:actionOverride interface. It is needed to override standard buttons on standard record pages.
0
votes
0answers
10 views

Update column value in a table whenever a value in row is changed

I'm populating column values using aura:iteration in a table and i want to change the column values whenever a row's(populated using aura:iteration as well) value input is changed. The problem is that ...
4
votes
2answers
47 views

When do you need to use default="{'sobjectType': 'ObjectName'} for an aura:attribute?

I'm getting the below error- when I type into a lightning:input whose value attribute is bound to a field on the custom object- when I don't use the default attribute. Is this because the default ...
0
votes
1answer
27 views

How to access a dynamically generated html class name from a JS controller?

I was trying to concat a class name with index from the iteration component. If it's correct, how can I access this value from the JS controller? Component: <lightning:overlayLibrary aura:id="...
2
votes
2answers
250 views

Set CSS class dynamically in Lightning web component

How would I translate that from Aura to LWC? <aura:iteration items="{!v.contacts}" var="contact"> <div class="{!contact.isActive ? 'slds-tabs--path dimmed' : 'slds-tabs--path'}">...<...
0
votes
0answers
25 views

Correct formula for the last page in pagination

I make a pagination for lightning for my list of objects. First part is great. But when i get to the last page (v.pages == v.page) - something goes wrong. Values for the number of objects are ...
1
vote
1answer
15 views

Passing mutiple attributes to Application type event and handling the event in multiple components

Here is what I am trying to do. I have components A, B, C all on the Home page and there is another component D which has few Aura:If blocks to display differnt blocks as needed. I am using a few ...
12
votes
1answer
185 views

Value provided is invalid for action parameter [VAR] of type 'String'" instead

Seems like upcoming changes in Spring 19 are causing us issues with "AuraEnabled" methods. Since forever now, primitive types were sent from Aura to APEX as String only as explained here: https://...
0
votes
0answers
35 views

<ltng:require not working in community

Component <aura:if isTrue="{!v.customScriptCSV != null}"> <ltng:require scripts="{!v.customScriptCSV}" afterScriptsLoaded=" {!c....
0
votes
2answers
34 views

Lightning components - Initiating attribute with controller with multiples sObjects

I'm Working on Lightning components I would like to add some values in my App, by its controller (aura:handler) I'm trying with this : component.set("v.objetsCamping", tabObjets); But it doesn't ...
0
votes
0answers
21 views

How to implement managed package interface?

I have installed a manage package in my sales force org. Package has given an interface to override/add custom business logic. It was working great with the below code. global with sharing class ...
0
votes
0answers
37 views

Uncaught Error in $A.getCallback() [chartDataProviderName is not valid] Callback failed: MyController/ACTION$getChartData

Hi I am getting the following error. Uncaught Error in $A.getCallback() [chartDataProviderName is not valid] Callback failed: apex://MyController/ACTION$getChartData .cmp file <aura:...
4
votes
1answer
91 views

$A.createComponent with does not work in the community after Spring 19 release

I have the issue but cannot understand what is wrong, hope you will help me here. There is the community with custom lightning Register component. When you fill some basic info about the user you ...
0
votes
0answers
38 views

Passing Map<String,Map<String,List<String>>> to an AuraEnabled method, but fails with Invalid Conversion Exception

Fails with the exception Invalid Conversion from runtime Map<ANY,ANY> to Map<String,List<ANY>> Also tried sending the JSON.Stringify(Map) before passing to AuraEnabled Method but ...
1
vote
1answer
28 views

Find value of div inside aura iteration on icon click!

I am trying to find the value of a div which is inside aura iteration on icon click which is also inside the same aura iteration. Here in this code below I am trying to find the value of the aura:id=...
3
votes
1answer
158 views

Apex `if (Boolean) `. Null exception virtually renders this check useless and unsafe

Being that an if (booleanVariable) check, where booleanVariable is null, throws a NullPointerException, it would seem that this check is unsafe. If so why would Apex allow it? This is especially true ...
0
votes
0answers
23 views

Incorrect index value being displayed on selection of radio button

I'm iterating over a list using aura:iteration. Each iteration I have a radio button where I have an attribute named data-index="{!index}". In the controller, when I try to print which radio button ...
4
votes
1answer
57 views

Bound data binding does not work with list items

Let me start by showing you what I am doing. ParentAppWithListAttr.app <aura:application > <aura:attribute type="List" name="justAList" default="['hello','world']"/> <aura:...
1
vote
1answer
36 views

Trouble with aura:if

I am not sure why this is not working. I have an aura:if condition, if the check matches then the item should be displayed. Here in this code below I am checking the ofc.agentName is not empty then ...
1
vote
1answer
65 views

How to change Lightning:Tab label dynamically?

I want to change label for tab dynamically, but that's not working. Please find the related code below: Component <lightning:tab label="test1" id="tabId"> JS Controller component.find("tabId"...
10
votes
4answers
1k views

What is involved in moving over to Lightning Web Components?

I read: Aura Components, leveraging its own component model, templates, and modular development programming model. Lightning Web Components, built on top of the web standards breakthroughs of the ...
0
votes
1answer
20 views

Aura:if - check with a regular expression

Is it possible to write aura:if conditions with regular expressions. Ia m trying remove records if the a certain field in that record is not a number. <aura:if isTrue="{! !add....
10
votes
3answers
875 views

Will Lightning Web Components have retrocompatibility?

I've just read here that Salesforce decide to change the framework used for Lightning Component. In according with this article, it seems very powerful under some aspects. In your opinion, the actual ...
0
votes
1answer
89 views

Lightning combobox options attribute not showing any options!

I am trying to populate the options attribute of the lightning combobox to the values of a component attribute. The channels component attribute has all the values in it, but for some reason it doesn'...
0
votes
1answer
31 views

Aura:if not working as expected?

I am trying to display the price of the item if the price is not equal to 0. Whats would be wrong with the usage below? The '0' here is a currency data type in the custom object. Please advise! <...
1
vote
1answer
23 views

Get Task description with line breaks in SOQL

I have a lightning component that displays a List of Tasks in a sidebar. I use a SOQL query in the controller to fetch a List that fits the criteria and display them in the component. I manually model ...
1
vote
1answer
22 views

Where are events registered with aura:registerEvent documented in the component spec?

This is a seemingly simple question that maybe someone can help me with: the <aura:registerEvent /> tag has a "description" attribute. Based on the way other tags are documented (e.g. <aura:...
0
votes
1answer
81 views

Lightning listbox selection styling

In the developer docs they have a really cool Listbox-looking thing where you select an item (with nice hover effects and everything) and then it changes the content of several other components. For ...
0
votes
0answers
28 views

Remove grey outline from Lightning component [duplicate]

I have created a lightning component which sits as an Action in my Service Console like this... I am trying to remove the grey outline inside the box, I have tried setting CSS styles on the lightning ...
0
votes
0answers
28 views

Clone metadata using Tooling API

I am trying to clone Lightning Aura Bundle using Tooling API. First I executed the GET from REST Explorer using Workbench by passing the component Id. And then I used the Raw Response to hit the POST ...
1
vote
0answers
21 views

Userscripts manipulating aura components

Objective: To write a userscript that runs on my browser and scrapes data from a specific salesforce dynamic form that I have to fill out during my job. Summary: I am using TamperMonkey to run my ...
1
vote
1answer
40 views

How to URLEncode within aura:component

With an VisualForce page, we just call URLEncode. Took 5 minutes for me to figure that out. How to we do the equivalent inside an aura:component, with markup like this: <iframe src="{!'https://...
2
votes
1answer
60 views

Aura Json Uitl Api Issue

I am passing Sobject using aura attribute.. But I am getting error as: Invalid Aura API : Source Here is the code: orderadd : function(component, event, helper) { var action = component.get("...
0
votes
1answer
32 views

Aura:method and callback

I am not able to understand Aura:method attribute and how it helps in making asynchronous callbacks.. I went through this Link but was not able to understand its working.. Will be great help if anyone ...
1
vote
1answer
21 views

Throwing a CalloutException for Aura Controller

I have an aura controller which calls a Services class. This services class makes a callout to external system and returns a response. public class Anauracontroller{ public resObj callService(){ ...
4
votes
2answers
169 views

How can I make a lightning component change as the underlying data changes without refreshing?

I'm writing a lightning page that allows two players to remotely play chess through the same lightning page. The page uses the aura framework. For what I've already implemented, the Game__c object ...
1
vote
1answer
34 views

Can <lightning:flow> be nested inside of </aura:iteration>, getting Uncaught Error in $A.getCallback() [Cannot read property 'startFlow' of undefined]

Trying to display more than one flow in the lighting component. Name of the flow will be passed by apex class <lightning:tabset> <aura:iteration items="{!v.lsCustomTabs}" ...
0
votes
1answer
112 views

Salesforce afterRender threw an error in 'lightning:select' [Cannot read property 'value' of null]

Below is my code. Component: <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:attribute name="listControllingValues" type="list" default="[]" description="to ...
0
votes
2answers
62 views

Pie chart not displaying in aura component [closed]

I am developing a simple pie chart which will be included in the Accounts lightning page and I've stored Chart.js(Version 2.7.3) in static resources. However I'm struggling to get it working and no ...
0
votes
1answer
154 views

lightning:fileUpload is coming as disabled

I have a lightning component which has a form. The details provided in the form in turn creates a case record in the back-end. I want to attach multiple drag and drop files along with the details ...
0
votes
1answer
32 views

loop through components looking for data in it

im building a list that people select only a single item which works in a limited capacity but reloading or re-selecting isnt very user friendly. the basic concept is a controller retrieves selections,...
0
votes
1answer
197 views

Setting multiple conditions using conditional AND/OR Operators in aura:if attribute

I had tried this on my own, but couldn't achieve the functionality of having multiple conditions checked using conditional 'OR' operator of an aura:if attribute. I tried to render a div only when the ...
0
votes
1answer
59 views

Aura Documentation Site is Down

I can't access the aura doc site. From my perspective, it's been down over a week. This is a sanity check: Is it me or is it the site? Is there an alternative?
0
votes
2answers
169 views

Lightning Data Service: aura:if NOT condition

I am writing a new Lightning Component to conditionally render a message based on a few field values. I am close to having the conditions render like I want, but I can't figure out how to write in a ...
0
votes
1answer
28 views

How do I handle client side error handling?

I am creating a lightning component that will have a button that, when pressed, will update the record being viewed and send an email alert. I have managed to get the functionality working as it ...
0
votes
1answer
161 views

Adding Aura Application to Page Layout

So i have followed this tutorial on how to create a custom multi select for accounts (I am going to use it for users) I want to add this in the Page Layout on the Account page but I am having some ...
0
votes
1answer
119 views

setting value on a div not working

I cant set value on div during aura iteration, the reason why I need to set it on a div cause the div is writable contentEditable = true;I want to display value there so it can be edit it. <aura:...
0
votes
1answer
39 views

unable to save Aura Component

I am trying to save the below Aura Component but getting error. Code is - <aura:component implements="flexipage:availableForAllPageTypes" access="global" controller="ComponentController"> &...
0
votes
0answers
17 views

Function.prototype.constructor working unexpected after winter 19 update

We do have salesforce vf page with ExtJS contents on it. This page has capability of loading lighting components. Everything was working fine until last winter 19 update (September 07, 2018), after ...