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
0answers
8 views

Upload Blob file on Azure Container

HTTP Callout to Azure Blob Hi All, I'm facing an error while uploading a file on Azure from Apex Error is: AuthenticationFailed Server failed to authenticate the request. Make sure the value of ...
0
votes
0answers
18 views

Lightning Radio Group Double Click to check

I have a lightning radio group as the following html, and it takes 2 clicks to get selected. The first one puts on focus the element and the second one finally selects the input. Does anyone knows why ...
0
votes
1answer
32 views

How do I pass the recordId of an account from a lightning flow to my lightning aura component

I have a action button on account which calls a lightning flow. I am creating a lightning component where I would like to pass the (account) recordId from the flow to this lightning aura component. I ...
1
vote
0answers
40 views

Global Search Results in Lightning Community

I am trying to use the OOO Global search Results component with the custom Lightning component in Community(Using custom theme). The custom lightning component should take the input from user and show ...
0
votes
0answers
9 views

sforce.one.editRecord(RecordId) is not redirecting in detail page

I use - sforce.one.editRecord(recordId) However after I click Save - it show the toast message, then it return back to my VF page which I don't want to. How to make it go to detail page after ...
0
votes
1answer
19 views

“sum” being returned as an index of array

I am seeing a weird issue in a Lightning Community with an Aura Component. When I loop over this structure: [ { "label": "Contact (OrderApi__Contact__c)", "value&...
0
votes
0answers
23 views

Unable to set attribute/var in helper.js

I am calling apex class from helper.js and want to store the return string in a var or attribute. But the return string from apex is not getting stored in any of these. Its always coming as undefined. ...
0
votes
0answers
16 views

How to use <lightning:inputField> inside an <aura:iteration>?

How to use lightning:inputField inside an aura:iteration and lightning:inputField with picklists values, field dependencies? lightning:inputField can used in aura:iteration,but lightning:inputField ...
0
votes
1answer
13 views

lightning:recordForm fields structure not working in Aura component

I have what at first seems to be a simple question, but I can't seem to pin it down. I'm working with the lightning:recordForm, and I'm sending the fields dynamically based off a callout where I'm ...
1
vote
0answers
25 views

Aura component on load gives an error

There is a record edit form in my component which has 4 fields. On load I am getting a weird error. The issue occurs due to the field IncumbentDevice__c which is a picklist field at the object level. ...
0
votes
1answer
18 views

Throw error for special character

I want to throw error message when there is a special character in the user input.I tried following, var re = new RegExp('[-!$%^&*()_+|~=`{}\[\]:";\'<>?,.\/]'); console.log('@@ special ...
0
votes
1answer
33 views

How to load a spinner when loading values from child component .spinner is not properly

<aura:if isTrue="{!and(v.CaseRecord.ProductId!=null,v.CaseRecord.ProductId!='')}"> <c:COMM_Case_SubCategory aura:id="SubCat" ...
2
votes
1answer
46 views

AuraEnabled methods do not support return type of Map<String,Set<String>>

This is my Code in apex, But its showing Error-AuraEnabled methods do not support the return type of Map<String, Set<String>> I am not getting what's wrong in my code and why map<string,...
1
vote
2answers
52 views

Does a library exist for securely querying for arbitrary data?

I'm looking for a library we can use from Aura and Lightning Web Components in particular, to take some sort of request and return the data for it, but only if/what the user can see. Per their secure ...
2
votes
0answers
35 views

Aura components do not support custom classes with constructors?

We have a situation where we have an @AuraEnabled endpoint, that we want to take a custom class as an argument. This works fine for LWC, but older Aura components seem to have a serialization issue ...
0
votes
1answer
27 views

Mirroring of single picklist value in all picklists in nested aura iteraton

I have used an aura iteration to create a table and I have a picklist field inside that table which uses an aura iteration itself. The problem here is that whenever I select the value of any one of ...
0
votes
3answers
64 views

Pass Nested Map from Apex to JavaScript Controller

I am currently working on a Lightning Component. Within my Apex Controller I have a nested map looking like this: Map<LineItem, Map<LineItem, Map<LineItem, Map<String, LineItem>>>&...
4
votes
1answer
47 views

Is there any component equivalent in LWC or AURA for apex:actionPoller?

Is there any component equivalent in LWC or AURA for apex:actionPoller ? I know that we could achieve the functionality of apex:actionPoller by setTimeout() method, but I wonder if we have any ...
0
votes
1answer
38 views

create a new button to clear all fields except one using lightning component

I am new to development have started coding now and learning as per each requirement i am able to take. I have a requirement where "Today on all 4 pages within the community we only have a ...
0
votes
1answer
31 views

Unable to render Parent record in LWC

I need to render parent name in a LWC that is called from an aura component. I thought I had it working but the field is blank. I also added a controller thinking that was my issue but still not ...
0
votes
0answers
11 views

Lightning Aura : handle lightning:datatable mousehover to show popup screen

I am developing a custom lightning component using the lightning:datatable lightning component and I want to show a two popups (like the example at the end) when the mouse hovers the two buttons, the ...
0
votes
2answers
23 views

How to remove addEventListner?

Using this to close the modal when escape button pressed in salesforce aura component. document.addEventListener("keydown", function (event) { var kcode = event.code; ...
0
votes
1answer
63 views

LWC Submit for approval action in apex method

I have basically a simple custom made button that needs to auto submit the account for approval like standard functionality button but with specific comments added. import { LightningElement, track, ...
0
votes
1answer
59 views

Record ID is not passing from Aura component to LWC component

I have a requirement to validate a few fields before submitting the record. I have created an Aura component and calling the LWC code to do some validation. Aura Cmp: <aura:component implements=&...
0
votes
1answer
14 views

Aura: How to get name of instanced component from base component

Given an extensible aura component which is being used as a base component for another component, how can code in the base component get the name of the actual instanced component? For example: <!-...
0
votes
1answer
38 views

Calling a void apex method from LWC

I am currently stuck. All I have is a simple component that is supposed to submit the record for approval on button click. I am having trouble on load of the component ( it is being called as a ...
0
votes
0answers
13 views

Lightning input File upload

Can anyone suggest me what is the limit of file upload using lightning input. I am uploading file content chunk by chunk.. Some help articles suggest of 4.5 MB being the limit but i get size error on ...
0
votes
1answer
22 views

Aura Template to get child components by `data` attribute

It seems I can't access child LWC components while I am using the controller.js from an Aura Template for Record Page. Everything returns back a length of 0. I've tried document.querySelectorAll and ...
0
votes
0answers
17 views

Lightning Page Refresh component erroring out

We have a lightning page where a section is getting updated via a third party webservice. In order to show the updated values, we have a lightning component to refresh the page once the values are ...
1
vote
1answer
29 views

How can we import tokens into defaultTokens so that they are applied for Community?

It is not clear how can we define custom tokens to be used in the community in a different file then defaultTokens.tokens. Looks like that only tokens which values are defined in the defaultTokens....
1
vote
1answer
84 views

Dynamically query @AuraEnabled Apex Class

For one of the requirements, I need to query and list down Apex class those are only @AuraEnabled in nature. Is there any Metadata API is available for this? I believe this is not going to help me... ...
0
votes
0answers
18 views

Global marker for UI test automation in aura

What is a good way to set a "marker" for a UI test automation? Right now my application has quite a bit of background server calls that I want to wait to complete. I am considering adding ...
0
votes
1answer
42 views

Cannot read property 'get' of undefined. May i know if there are any trouble shooting points

I have mentioned everything correct, but still i am facing the issue, may i know if there are any trouble shooting points. Code: Component: <lightning:combobox name="Select Instance:" ...
0
votes
1answer
21 views

Id variable undefined in javascript aura - not getting set in time before rest of code runs

I have an Id variable undefined in javascript aura - not getting set in time before rest of code runs. I am needing the variable v.workOrderId to be populated before other helper code runs. I'm ...
0
votes
2answers
55 views

Aura: can I add a help text to an accordion section?

I have the following code: <lightning:accordion aura:id="accordion1" allowMultipleSectionsOpen="true"> <lightning:accordionSection name="Selected" label=&...
0
votes
0answers
13 views

“Submit for Approval” button is not going away after approving the record via apex code

"Submit for Approval" button is not going away after approving the record via apex code. Please let me know the issue here. The approval history is updating as approved and the status also ...
0
votes
0answers
20 views

Issue with load Static Resource to Aura component

I have a folder that I compressed to ZIP and I want to import it to my aura component, but the "afterScriptLoaded" is never call. <aura:component implements="force:appHostable,...
0
votes
0answers
11 views

Determine TRUE, as in Current, Client IP in Lightning Component or LWC

I have a requirement to sign a shortlived token which must be bound to the users CURRENT ip address. I have not found a way to get the users current ip address within a lightning apex controller. I am ...
0
votes
0answers
19 views

What is the exact difference of lighnting component framework and Aura Framework?

if Lightning component Framework is a subset of Aura framework then What are the features that are common for both aura and Lightning Component Framework and what are the features that Aura framework ...
0
votes
2answers
32 views

Changing the text of the Selected Lightning Card through checkbox

https://i.stack.imgur.com/y3tg6.png Please click the above link to view the image . The part circled in RED needs to be changed after clicking in the checkbox 'Mark For Deletion'. Right now my issue ...
0
votes
1answer
51 views

@wire decorator sending 'null' value to Apex in LWC

I have 2 methods in my apex class one is fetching the record and another one is for updating public with sharing class UpdateCaseRecord { @AuraEnabled(cacheable=true) public static Case fetchCase(Id ...
0
votes
2answers
22 views

lightning:dualListbox is throwing script error on option selection

Below is my logic: <aura:attribute name="selectedValues" type="List" /> <lightning:dualListbox name="languages" label= "Select ...
0
votes
1answer
19 views

body attribute in lightning web component

Do we have any body attribute the way we have in aura component, so we can just write the details in between component name tags. <lwccmp> body details </lwccmp>. we have body a default ...
0
votes
1answer
45 views

Aura Component Spinner Inverse Color

I want to make my spinner in my modal to go darker but the CSS was not working. CSS: .THIS.loading_wheel { position: relative; background-color: rgba(0,0,0,0.5) !important; height: 80px; } ...
0
votes
1answer
20 views

Prioritize component oninit in the aura component

I'm wondering is there any technique or pattern that I can use to prioritizing the oninit call? I have main component (MAIN.cmp) and within it I have few other components Child1.cmp, Child2.cmp and ...
0
votes
1answer
42 views

How to use the Time attribute in LWC table

How do we format the Time in datatable like HH:MM:SS in the LWC data table. In my datatable column type is defined as Time, expecting the date only format HH:MM:SS. { label: "Start Time", ...
0
votes
0answers
14 views

I need help with this Aura of statement. How to write an if statement if field one cannot be equal or greater than field two? [duplicate]

I need help with my Aura if statement.There are two time fields that the Start time can not be equal to or greater than the end time? I tried to write out the aura if statement but I am getting stuck ...
0
votes
1answer
51 views

How to write an if else statement in Aura

I tried to write out the aura if statement but I am getting stuck if someone can explain it to me in detail. thank you <aura:if isTrue="{!lessthan(v.Tl.time, v.Tl.End_Date_Time1__c)}">...
0
votes
1answer
44 views

How to display toast message on record opening

Below is the toast component that will be displayed on button click on record page Component: <aura:component implements="force:hasRecordId,force:appHostable,flexipage:availableForAllPageTypes&...
0
votes
1answer
21 views

Lookup field to not hide inside flow screen

How can I fix this issue? Flow screen is hiding the search results and user has to scroll to find a value or to create a record as "New Account" is the last option. I tried z-index and ...

1
2 3 4 5
17