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

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. ...

0
votes
1answer
28 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
23 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
33 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
24 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
0answers
16 views

navigateToURL is not working [duplicate]

Please find the code. Code is very simple. when I click on Google search it does not navigate me to google page. Application <aura:application access="GLOBAL" > <aura:dependency ...
0
votes
1answer
12 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
0answers
20 views

Custom lookup(user queue) lightning component [closed]

I want to create a lightning component with the same features like the standard Change owner functionality in case (lightning view). I tried with lightning:recordEditForm which doesn't work for Owner....
0
votes
0answers
34 views

contentAsset not displaying image when used in Community Lightning Component

I have a Salesforce Community and I had added a basic HTML Editor component onto one of the pages and in the html code I was able to reference an image file which then correctly displayed on the ...
0
votes
1answer
34 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
36 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
19 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
14 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 ...
3
votes
1answer
51 views

$A.createComponent inline callback for ui:button.press

Is is possible to create a "ui:button" and set "press" attribute to a function that's defined as a variable in the same scope of $A.createComponent, or inline which is the same, and NOT a function of ...
1
vote
3answers
49 views

How can I move my spinner into a separate Lightning Component?

I have a lightning component which includes a spinner rendered by this code: <aura:component access="global" controller="SomeAuraController" implements="flexipage:availableForRecordHome,...
0
votes
0answers
27 views

Lightning Quick Action to be available on certain conditions?

I currently disable the UI and call the apex controller on doInit of the controller.js and if the UI is valid to be used at the time, enable them, otherwise close the quick action window. Is there ...
6
votes
2answers
142 views

Extending Lightning Components not working

My goal initially was to avoid pasting my common functions into every new components helper.js file (previously researched) and I found out that you can extend the components (some example codes) I ...
2
votes
2answers
43 views

Re-open tab in salesforce console app

I want to create function for reopening(refreshing) component or whole opened tab by clicking on the button. I couldnt find any working example. I am using aura lightning component. cmp: <...
0
votes
1answer
66 views

How to detect window.resize event in lightning?

I want to change height of a div element of my aura component as the browser windows height gets changed. I am enable to find any event associated with window.resize. How do i call a method when user ...
3
votes
1answer
57 views

Is it possible to bring built-in lightning components into aura component?

I have a form that needs to let the user select 3 out of 5 products, something similar to Order > Add Product (Modal). I was wondering if there was a way to bring that piece into my component (markup) ...
2
votes
1answer
62 views

Strange! Two different attributes are not isolated to each other in a Lightning Component

Well, I don't know what going on. I'm setting two different attributes in a Custom Lightning Component on init, one is to iteration on UI side and another one is for just reference and it holds the ...
5
votes
1answer
40 views

Surfacing a non aura enable method exception to a Lightning Component

So I have the need to surface an exception that currently gets throw 2 classes away from an @AuraEnabled method. The basic flow of the execution cycle goes like this: OAuth Class(REST callout to 3rd ...
0
votes
3answers
55 views

Aura:if displays both options

I have a problem with aura if in lightning component, the condition doesn't work, my code below : <aura:if isTrue="{!v.account.cel_email_mailable__c != 'N' }"> <div onclick="{!c....
1
vote
1answer
78 views

lightning component empty field check?

<aura:attribute name="guid" type="String" default="{!v.simpleRecord.Loan_Guid__c}"/> <aura:attribute name="fileCreated" type="Boolean" default="{!v.guid != '' ? true : false}"/> ...
0
votes
1answer
35 views

How to fetch all properties of apex class object using helper.js function in lighting component in Community portal

When passing list of object of apex from controller to helper js, we couldn't access properties of each object. We can see the count is shown correct in js function, but can't see/access property. ...
0
votes
2answers
106 views

Condition aura:if with custom field

i am want to use dynamic changing of the button. I am using aura:if but i dont know how to pass custom field value into it, or if it is even possible. <aura:if isTrue="{!...
1
vote
0answers
21 views

controller throwing javascript error

I have a very basic controller function which is for some reason throwing a Javascript error. HTML where controller is called: <lightning:button label="Apply" iconName="utility:magicwand" ...
0
votes
0answers
22 views

How to get access to $A methods when running in VisualForce under Lightning

I've been trying to use $A methods in a VisualForce page that runs under Lightning. I am able to use the $Lightning methods (having used the includeLightning tag), but when I try $A methods I get a ...
10
votes
2answers
146 views

Is it impossible to dynamically instantiate an instance of lightning:menuItem?

This question is about a potential Lightning platform bug I ran across today. In my search for a resolution I ran across this post from last year that was never answered, that seems to have the ...
2
votes
0answers
31 views

nodownload video attribute in Lightning component

I can use the nodownload video attribute on a VF page. Can't seem to get it to work on component. Is there a way to get nodownload attribute to work? <aura:component> <aura:html tag="div"&...
0
votes
2answers
57 views

Error -[Cannot read property 'style' of null]

Error ID: -270960303 This page has an error. You might just need to refresh it. Error in $A.getCallback() [Cannot read property 'style' of null] Failing descriptor: {c:CommunityBreakingNews} ...
0
votes
0answers
27 views

Glitches on after some code is uploaded

I use WebStrom + Illuminated Cloud 2 to upload code to my sandboxes. Sometimes I'm uploading some component and apex classes, and in my log view confirms that my code was completely uploaded. example ...
0
votes
1answer
84 views

Toggle buttons on click [duplicate]

i have a problem to figure out, how to toggle buttons in aura/lightning component. I have two buttons with functions showMore and showLess. The thing is, i want to only see button show more, and when ...
6
votes
2answers
280 views

Lightning component.find(“aura:id”) returns an array consisting of one element

I found the following excerpt in the documentation: If the local ID is unique, find() returns the component. If there are multiple components with the same local ID, find() returns an array ...
2
votes
2answers
29 views

Need to find the documentations for these global variables and event names

Most programming languages have a full documentation or at least a complete list of all functions and classes and a short description, I noticed a few things in aura and apex that I can't find it's ...
3
votes
1answer
78 views

Using Aura outside of Salesforce

I recently dived into Lightning and the Aura framework and I'm really wondering why you would choose Aura over any other framework. Of course in Salesforce you have no choice but what about the ...
0
votes
0answers
23 views

Calling aura:method results in undefined value

Strange things are happening to aura recently...First marking attributes private hide them from the component itself and now the return value of a method is undefined... why o why? I have an invoice ...
0
votes
1answer
21 views

Aura picklist 50 item limit

The below code produces a list of 50 accounts that display in a picklist. I need to have more items to display in the picklist. How can I do this? Can I change the type of picklist? <lightning:...
0
votes
0answers
16 views

Query aura:component's DOM on afterRender

I want to initialize some custom javascript components within every new rendered Aura Component's DOM. I've been adding script in the afterRender of my Components renderers from within I was hoping to ...
0
votes
1answer
26 views

Aura attribute of type List not accepting an array of objects

I would like to pass an array of objects from my js file to an aura attribute. I know the list contains values and is correct before I pass it to the aura component but the list is empty when I log ...
0
votes
1answer
28 views

How to use component.get() in Aura Controller for Boolean value in Component

I have a boolean attribute in component Component <aura:attribute name="isOpptyExists" type="Boolean" default="false"/> Controller var isOpptyExists = component.get("c.isOpptyExists"); ...
0
votes
0answers
92 views

Change event on UI:InputText in Aura:Iteration throws 'afterRender threw an error in 'ui:inputText' [(a || s).replace is not a function'

I am facing a very strange error when applying change event on UI:InputText that is inside Aura:Iteration. When I focus out of the Input it throws me below error. This page has an error. You might ...
1
vote
1answer
138 views

Set lightning component aura:id attribute dynamically while creating the component

Is it possible to set lightning component aura:id attribute dynamically while creating the component? Here is my code for the component creation: $A.createComponent( "c:...
3
votes
1answer
73 views

How do I use a JavaScript object as an aura:attribute?

How do I use a JavaScript object as an aura:attribute? Should I do it this way <aura:attribute name="jsObj" type="Object" default="{aValue: 5}"/> or another?
0
votes
0answers
19 views

Unable to pass SOQL response as a param to another same class method in APEX lightning

List<Liabilities__c> al=new List<Liabilities__c>(); al=[Select Liability_Balance__c,Liability_Months_Left__c from Liabilities__c Where Applicant__c=:borrower]; for(Liabilities__c ...
0
votes
2answers
82 views

wrapper data not showing in lightning component

i am triing to display wrapper data into table in lightning, but its displaying null data
0
votes
0answers
15 views

Salesforce Metadata API - Aura component with namespaces collision

I am trying to retrieve all the metadata components using Metadata API. There seems to be a different way when AuraDefinitionBundle type is retrieved. The retrieve on package.xml is: <?xml ...
2
votes
0answers
676 views

Cannot read property 'config' of undefined

I get this error just randomly: Uncaught Error in $A.getCallback() [Cannot read property 'config' of undefined] Callback failed: apex://taskKanbanController/ACTION$getKanbanWrap Here's the relevant ...
0
votes
2answers
96 views

Salesforce Lightning: How to save attribute values of a child component in a parent component when a button on the parent component is clicked?

I have a parent component which iterates over a child component and has a save button. Parent.cmp: <aura:attribute name="casAgentList" type="Availability_Of_CAS_OneMDCS__c[]"/> ... <...
0
votes
1answer
30 views

Duplicate Contact on Lead detail lightning page

I have requirement where lead is coming from webservice through form on one of our site .So,when lead is coming i have some dedup rules to check against existing contact.So till here everthing is ...
0
votes
0answers
189 views

onclick event not working on dynamically created <li>

I have a component where upon aura:iteration (data loaded from server onInit), other components are created (list items of an SLDS lookup). The issue I have is, the onclick on the LI does not fire ...