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

0
votes
1answer
13 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
15 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
16 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
46 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
25 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
12 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
20 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
17 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
32 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
18 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
18 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
129 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 ...
0
votes
0answers
20 views

Trying to use empAPI on visualforce [duplicate]

I am trying to use the empAPI component on my visualforce page. I am aware that the empiAPI is a lightning component but I was wondering if I was able to call that component in a visual force page. ...
0
votes
0answers
34 views

Managed Package successfully installed but getting “unexpected error” when trying to reference components

UPDATE: After additional troubleshooting, it seems like I've narrowed the issue down to two things: first, I created the most basic of HelloWorld components to rule out compilation problems with the ...
1
vote
1answer
18 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
0answers
41 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
28 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
42 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
31 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
63 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
43 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
41 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
22 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
91 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
65 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
67 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
27 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
16 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
71 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
62 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
44 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
252 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
86 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
209 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 ...
4
votes
1answer
95 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
63 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
63 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
102 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
321 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
84 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
382 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
30 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
177 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
47 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
61 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
29 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
165 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
519 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
31 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 ...