We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

I'm Using lwc component at case record page to perform action on record and once user clicks on submit, it should reload the record page

The below code is working in standard app but not in salesforce console.I wrapped the LWC component into aura , but still it is not working /* eslint-disable no-console */ import { ...
-1
votes
1answer
23 views

aura attributes string list

I use a <aura:attribute name="colorPalette" type="List" default="['red', 'green', 'blue']" /> and default values are not assigned to the attribute. The value that the attribute has is always ""...
0
votes
0answers
12 views

Aura new record page too tall in lightning sales console

When an aura window that works fine (full screen) in normal UI is opened in lightning sales console, it is partially hidden by the utility bar (History and Notes) at the bottom of the screen. Any ...
2
votes
4answers
28 views

Cant pass attribute from iteration to child component

Let's say I have two components. Part of Parent <aura:iteration items = "{!v.resultSet}" var = "record"> <tr data-id = "{#record.id}"> <aura:...
0
votes
1answer
17 views

component.set not setting attribute value from data.getReturnValue in action.setCallback

I am using this component: https://developer.salesforce.com/docs/component-library/bundle/lightning:map/ and instead of having a hard coded I am trying to grab the billing and shipping addresses from ...
1
vote
2answers
24 views

Button to Open a LWC

I need to create new button called ‘XYZ’ to be accessible on Opportunity record at the top of the page layout (Standard page) that will open a pop window with my LWC. How can I do this the most ...
0
votes
1answer
27 views

How to detect swipes on a lightning/aura page

I have multiple tabs for users to switch between. For mobile users ideally they could swipe left/right and see the information on each tab. How can I do this in an aura page? I tried it a variety of ...
0
votes
1answer
33 views

Is it possible to get parent element in event handler (Lightning)

Let's say we have some aura component <aura:iteration items="{!v.filters}" var="filter"> <div id = "{!filter.id}"> <lightning:layout aura:id="{!filter.id}"> &...
2
votes
0answers
31 views

getting issue in setting caret in div with contenteditable true

I'm trying to set caret to a child span of a div with contenteditable="true", Below is the code: placeCaretAt : function(id){ setTimeout(function(){ var test = document.getElementById(id)...
0
votes
0answers
23 views

Lightning Input - with Dropdown list

Is there a way in a custom Lightning Component, to have a lightning input and while typing in, to show a list of results? Actually, i think i need to have iteration but i do not want to use Lightning:...
0
votes
1answer
20 views

Why lightning-helptext is giving an arror

I'm using the lightning-helptext in my aura component and when I upload the code to my sandbox I have the error: Invalid Descriptor Format: lightning-helptext[COMPONENT] I copy and past the snipped ...
0
votes
0answers
13 views

setting reference selector of <lighting:OverlayLibrary> popover to a <lightning:datatable>

I am trying to have a popover to display next to a button when that button is clicked in the lighting data table as shown below: As you can see, the pop over appears in the upper left hand corner ...
0
votes
1answer
24 views

Trying to reference a static object thats name is stored as a field

I am trying to get a static resource image to display but Am having troubles getting it to populate how I'd like it to. Here are the two approaches I've tried: Hardcoding on the front end: <div ...
1
vote
0answers
17 views

Aura localizationservice: broken format/parse with some locales

We're having an issue with a custom-build form date input component. The component formats Javascript date objects into user-friendly strings for user display/input, i.e. "5 May 2019", and then parses ...
0
votes
1answer
19 views

Object Property Visible But Undefined

In an aura component, I'm passing a list of records of a custom object from the server to a helper function. Now as a JS array of objects, I attempt to add a new property to each object and assign ...
1
vote
0answers
51 views

How to install Force.com IDE for Eclipse [closed]

Salesforce retired Force.com IDE for Ecplise. Is there any way to install it? Or is it possible to work on Lightning Aura Component in Sandbox from Visual Code?
2
votes
1answer
22 views

One Component - different logic each call

I'm new to lightning - so I hope this is not a stupid question - I want to create a button component - the reason I want to create it as a component is to display some messages as Toast and create a ...
0
votes
0answers
13 views

how to add flow with lightning components in visualforce page

I want to implement "Flow" in a "visualforce page" so I can use it in a "site" to allow external users to access the flow's form. I think this is the correct way of achieving this goal but I am not ...
0
votes
1answer
22 views

Disable button even after refresh of page/component [closed]

I have a button in my lightning component (aura), which will send out a notification to certain user. In helper and controler there are events for success and failed. In case of success, I want to ...
0
votes
1answer
52 views

In the dynamic table, how do you dynamically set the value for each row's inputSelect?

These problems have plagued me too much time. Maybe my implementation method is problematic. Is there a better way? Ask a friend to help me. Question 1: When I get each row value in a dynamic table, ...
1
vote
1answer
34 views

Error passing parameter from lightning component to flow

A controller with the below works fine: init : function (component) { var flow = component.find('flowData'); flow.startFlow('OppAssignmentProcess'); } A controller with the below ...
0
votes
0answers
18 views

Handle Success and Error of multiple lightning:recordEditForm form submit

I have multiple lightning:recordEditForm in a lightning component. I have created a single button to submit all those forms. Using the following code. component.find("recordViewForm").forEach( form =&...
0
votes
1answer
45 views

Lightning Component, How to get the click event of each row of the table?

If the table has only one line, the annotated code can execute smoothly because I am using the static aura:id="parentField", but when I click on [+], the first line is copied and pasted to the second ...
0
votes
0answers
14 views

List not updating contents on UI

I have a list of items as an attribute that contains 5 items. Through aura:iteration, I'm printing only the first 3 on the UI. From the front end, I'm able to remove items from this list as well. I'm ...
0
votes
0answers
8 views

Null text fields being removed from JSON

We are having an issue that any text area that is not being populated with a value is being dropped from the JSON. Normally this would not be an issue but some of these fields are synced to SQL ...
1
vote
1answer
43 views

Need to override the redirect on cancel of a force:createRecord lightning component

Need to override the redirect on cancel of a force:createRecord lightning component. I am doing this but this is not working for me. ({ doInit: function (component, event, helper) { var ...
0
votes
2answers
26 views

Aura event not being caught

I have an onMouseover function that fires and event to another component within an app. The event is firing correctly but the other component is not 'listening' to the event. None of the code in the ...
1
vote
1answer
19 views

Render aura:attribute within aura:unescapedHtml

I'm using the aura:unescapedHtml component with some custom labels that will also include markup. For example: Custom Label: <labels> <fullName>Register_Text</fullName> <...
0
votes
1answer
57 views

What am I doing wrong with this “create an Aura Component” trailblazer tutorial?

I am playing around with this trailblazer tutorial: https://trailhead.salesforce.com/en/content/learn/projects/quickstart-lightning-components/quickstart-lightning-components3 but when I try to save ...
0
votes
1answer
32 views

Open Desktop Application using Aura

Is there a way to open Notepad application in users computer using Aura?
-1
votes
1answer
21 views

Aura component for building queries?

I remember seeing an aura component for allowing the user to build a query e.g. _ where ____ order by _ type thing. I can no longer find it.
0
votes
1answer
32 views

Navigate To Component in Community [duplicate]

I am using one main lightning component and all other components are opening within the main components. I want to update the browser URL when the user navigates. I am trying to navigate to a ...
0
votes
1answer
32 views

Display aura “Map” type attribute results in a aura String attribute

I'm working on an existing component that was passed on to me, and it stores some information in a map attribute type <aura:attribute name="acct" type="Map" /> At one point, address ...
0
votes
2answers
32 views

Display format is not visible as required?

Following is my apex class code. public static List<ReportEvent> TransactionalSecurityTmonth() { return[SELECT Name, QueriedEntities, Format, EventSource, NumberOfColumns, Operation, ...
1
vote
1answer
29 views

Lightning component flexipageRegionInfo

What values does Lightning use to make the Small, Medium, Large, and Xlarge width determination? Make Your Lightning Page Components Width-Aware with lightning:flexipageRegionInfo There is nothing ...
2
votes
1answer
65 views

Aura component critical updates related to $A.createComponent() or $A.createComponents()

i just observed summer 19 release notes, and in my org critical updates area, we r using $A.createComponent()/ $A.createComponents() in bunch of our custom lightning cmps's. still i am not under stand ...
1
vote
1answer
39 views

Lightning Datatable header not visible in Iphone

I have a lightning component that has a lightning datatable. The headers are not visible in the iPhone. Its working fine in Android devices.
0
votes
1answer
12 views

How to remove Image that is showing through the dropdown on top of it?

I have a drop down that opens on top of a search box. But the search icon is showing through the dropdown box. I have the following CSS for the dropdown content: .THIS .dropdown-content{ /*display: ...
0
votes
0answers
20 views

Required attribute not setting to OFF even though I have selected a value in Lightning:Select

I am facing a weird issue. I have a parent and child component and have two picklists in child component. Based on 1st picklist value, I am rendering 2nd picklist with options. Both have required ...
4
votes
3answers
344 views

Difference in using Lightning Component <lightning:badge/> and Normal DOM with slds <span class=“slds-badge”></span>? Which is Better and Why?

Example: <lightning:badge label="Lightning Component"/> <span class="slds-badge">DOM Tag</span> Which is better? Which is faster? And why should I use Lightning component if I am ...
0
votes
0answers
76 views

Custom Lightning Home Page Template - Only render a region if it contains a lightning component

I am attempting to create a custom home page layout template following the tutorial here. All is fine and dandy except that if a region doesn't have any lightning components added to it the region is ...
0
votes
2answers
94 views

Aura/LWC: How to do not merge multiple apex calls and send them separately?

If open network you can see calls like this: /aura?r=14&aura.ApexAction.execute=3 where 3 (or 1, or 2, or any other number) is apex calls count has been sent together. And it causes errors ...
0
votes
0answers
11 views

Delete recordId when passing parameter to child aura component

I create a new meeting note object with custom aura / apex/ js code. It creates a New input form if it does not get a recordId, and Edit form if it gets one. Now I want to reuse it, creating a ...
3
votes
4answers
1k views

VS code: how to specify Aura bundle folder?

Can anyone explain this error, that I've got in VS Code recently? When I tried to deploy code to my Org, I got this: SfdxError: You must specify the Aura bundle folder, not an individual component. ...
0
votes
0answers
38 views

LWC with aura wrapper for force:lightningQuickAction need to click update button twice

In lighting, I am trying to update values on a record and on save change the record type of the record and refresh the page. I wrote an lwc with the required fields and set a checkbox that kicks off a ...
2
votes
3answers
77 views

Dynamic Picklist Value Retrieval

I have these two functions that are very similar. They retrieve picklist values for my aura components. @AuraEnabled(cacheable=true) public static List<Map<String,String>> ...
0
votes
0answers
11 views

Save flattened calculated field to object

I have a flattened datatable column like this one simplified: helper: newLine.amount = newLine.price__c * newLine.qty__c; Now i need to create a new record on the SF Object with this "amount" value....
0
votes
1answer
34 views

Using aura:iteration over lightning:outputField doesn't seem to work

I'd like to display a list of configured fields (names possibly stored in CMDT) with lightning:recordViewForm, so it's easy to add/remove fields without deploying the component. However aura:...
0
votes
1answer
72 views

Issue with Specific Cell Popover inside slds datatable

My use case is to implement specific dataTable cell popOver on click. Below is the code. Using lightning:overlayLibrary base component to show popOver. It is showing popOver but only on the first row ...
0
votes
1answer
40 views

Use a For Loop to open retreived records (object list) as subtabs

Bit lost and stressed about this. I've been working on a feature that has had two requirements so far, and I'm pretty stuck on how to go about the second. For some background, the component runs on ...