Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
15 views

I'm having trouble. I would like if the test field is selected. Test2 is search-enabled

<c:customLookup aura:id="teste" objectAPIName="teste" IconName="custom:custom36" label="teste" selectedRecord="{!v.teste.Id}" /> I tried to use the onLookupChange of the lookup itself <c:...
1
vote
0answers
59 views

Any LWC on a record page layout in a subscriber org throws Internal Error

We have LWC's created in our managed package. They are marked as exposed. Whenever we try to include one in a record / flexi page in a Subscriber's org we are getting an internal server error with an ...
0
votes
0answers
11 views

ErrorObjectNotFound javascript error on upload csv

I was working on a feature to load records as picklist values on to a custom lookup component from a csv upload. The functionality was working as expected, but I get an error that says "...
0
votes
1answer
22 views

I am inserting single record with single file.but how to insert single record with attach multiple files using lightning input

i Am inserting single record with single file but how i can insert single record with multiple file in single transaction using lightning aura component.please let me know. please refer this link ...
0
votes
1answer
22 views

What does component.get('v.recordId',value) do?

I am reading a component and I found the following line: component.get('v.recordId',accID); I didn't know there was syntax like this what does it do ? I logged it and confirmed that it works, but I ...
0
votes
1answer
25 views

Aura Component don't catch event from another one

Lightning Event: tripEventer, attribute - trip, Trip__c Component Item: <aura:registerEvent name="openTripEvent" type="c:tripEventer"/> <lightning:button class="slds-align_absolute-...
0
votes
2answers
31 views

Lightning Component hiding/disabling button

I have created a Lightning Component that will update a custom field whenever a button is clicked. I want the button to be hidden when {!Go_No_Go_Question__c} is blank. Right now, the button is ...
3
votes
1answer
54 views

List on Wrapper class not visible in lightning component

I have an Aura component and I want to iterate through a wrapper class of objects, which has two lists as properties. While I can iterate through the wrapper class list, my lists come up as null when ...
1
vote
2answers
34 views

How to adjust min-height of Salesforce Lightning input rich text component on load

I would like to change the min-height of a Salesforce Lightning rich text component. The original code (old vendor) used a long text area and Aura. I changed it to rich text area using lightning:...
0
votes
2answers
35 views

Remove rows from Datatable in lightning controller?

Is it possible to remove rows from custom datatable within JS controller that is without making server call. <th scope="row" class="slds-text-align_left" style="width:3.25rem;"> ...
0
votes
2answers
60 views

how to remove header of lightning component [on hold]

Does anyone know how to delete the header of lightning datatable, and how to put data parts only? I would like to make table like the attached image. Red cross parts is supposed to be removed.
0
votes
2answers
58 views

Lightning Component hiding button depending on a value of a field

I am trying to create a Lightning Component to that has a functionality to update a field value Submit_Go_No_Go_Question__c, and hide the button whenever a field Go_No_Go_Question__c is not blank. ...
0
votes
1answer
57 views

How to force width resizing of lightning:datatable?

I've structured a component in a way that either a lightning:datatable aura component or a lightning:dualistbox. The dual list box is used to set the columns attribute of the data table. The issue is ...
4
votes
3answers
182 views

what's the equivalent of helper in LWC?

Could be a very basic question. I am wondering how I can call a function from another in LWC. for eg: export default class testUtil extends LightningElement { hangleChange(evt){ this.inputcheck =...
0
votes
1answer
17 views

Is it possible to use lightning:navigation inside an aura:application?

What I need is a simple link to the org's home page. The documentation doesn't cover the case of aura:application but only cover the case of aura:component. If I copy-paste the example inside an aura:...
3
votes
1answer
38 views

Helper method not calling other helper method

I'm trying to break logic into a few separate chunks, but hitting a snag. The basic structure of my helper looks like: ({ foo: function (component) { console.log(this.bar); // <-- ...
0
votes
1answer
23 views

Lightning:recordForm custom buttons

Is it possible to include custom buttons on Lightning:RecordForm or any of its variations ? Specifically a "save and new" button. If this is not possible, should the alternative be to create a ...
0
votes
0answers
32 views

sforce is not defined in UAT, but in sandbox yes

I'm having this problem, and I've tried all the solutions that can be found in this world to resolve; I'm working with the opencti APIs, in an aura component, in the sandbox the component runs fine (...
0
votes
0answers
15 views

Adding Related Records Programatically

I am building a community site, which will act as our customer portal, and I have built a case browser Aura Component that opens cases, when clicked, into new tabs. This is where I generate the tabs: ...
0
votes
2answers
42 views

AccordianSection name property is dynamically not changed, leading to serious problem in iteration

Hi I am working on a problem where I have multiple records of an Object to be shown and each of these records, will have many child records of It's Child Object. I have chosen AccordianSection to ...
0
votes
1answer
32 views

onLoad not been called in lightning:recordEditForm

I am having input fields inside my recordEditForm. When i try to run the component it's not calling the onload event handler. I don't want to put any lightning:inputField into it. Because I don't need ...
1
vote
0answers
38 views

Handling Success Save Event for LDS new record

I am trying to handle the success save event of LDS saveRecord method. I need only proper Id from the new record response. In DESKTOP it's working fine whereas in Mobile/Tablet i am getting improper ...
1
vote
1answer
25 views

force:lightningQuickAction remove scrollbar

Is there a way to remove the vertical scrollbar from my aura component which implements force:lightningQuickAction? I would like to keep the upper section fixed and make only the lower content ...
0
votes
1answer
39 views

How to use Wrapper classes in lightning component to iterate over wrapper class record list

I wants to use wrapper class object record list in lightning component and iterate over it to display the field values in all records as table. PFB the code that i have written. The problem response....
2
votes
2answers
84 views

lightning:icon pointing to SVG static resource has empty shadow root

An working SVG icon stored in a public static resource myicon_svg <?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g id="...
1
vote
0answers
19 views

Multiple filters for same field in wave:update

I'm developing a Salesforce Aura component that updates an existing Wave Analytics dashboard whenever something changes within the component. Those changes may affect same field with several values ...
0
votes
1answer
32 views

Call a helper function from within another helper function not working

I am trying to call a helper function from within another helper function, I read on this post that using this from within the helper function should grab the context of the object and I should be ...
1
vote
1answer
32 views

How to select all child checkboxes using HTML5 data attributes in Lighting

I have some code in my Lightning app which displays regions and countries beneath them using the code below (sorry its a bit messy I know): <div class="slds-checkbox"> <input ...
1
vote
0answers
19 views

Send text into the Email text editor from a lightning component [closed]

I have to send a predefined text into the email text editor when the user clicks something (On the Case page). It seems that there is no way to do it from an lwc component, but from an aura component ...
3
votes
1answer
66 views

Event listener being attached to lightning component everytime it loads

I have an iframe inside a lightning component that calls window.top.postMessage("data", "*");. When my lightning component loads it adds an event listener of message to listen to this post window....
0
votes
0answers
21 views

Dependency between custom component and standard page in lightning

I have custom component "CaseAsset" on case object which displays Asset values. After updating Asset object I want to refresh that component automatically to show updated values. I used below code to ...
1
vote
2answers
79 views

Dispatched event not firing in parent aura component

I am following this guide to communicate between my LWC and my aura component. But for some weird reason it still doesnt work. myComponent.cmp <aura:component implements="force:hasSObjectName,...
1
vote
1answer
46 views

Is it possible to call a method from aura controller to a Lightning Web Controller? [closed]

I just started using LWCs Inside the component that is holding my Lightning Web Component I have a controller with a method: ({ sObjectName: function(){ return component.get("v....
8
votes
2answers
310 views

Summer '19 Sandbox error: String index out of range: 0: Source

This is a self-answered question in case anyone else is looking. The Summer '19 sandboxes dropped over the weekend and I started getting the above error this morning. It was only on 1 Aura component ...
0
votes
1answer
24 views

How to add conditional fields in force:recordData

I am getting an error while loading my aura components due to some of the lookup fields does not have any value. In our data model we have a lookup to an Account from Account. It's setup as a customer ...
0
votes
1answer
50 views

Why all the @auraEnabled methods are static in lightning.Any special reason behind this

In Salesforce Lightning, We use @AuraEnabled annotation for method in server side apex controller.All the @AuraEnabled Methods are static. But Static methods loads in memory first and could take lot ...
1
vote
1answer
114 views

Unable to understand and fix problem LWC1010: Failed to resolve entry for module

I have a Lightning Web Component called simpleTable and another Aura Component which references it. When I try to use LWC component inside of Aura component like following <aura:component > ...
0
votes
1answer
64 views

Can I use base LWC in Aura component?

I am trying to leverage the new lightning-input-rich-text component functionality(font sizing and link) in my Aura component. I have tried adding the component in many ways and none of them work. I ...
0
votes
1answer
36 views

lightning:buttonMenu issue z-index doesn't work

I've created a lightning component which has a menu and this is how it opens: <table class="slds-table slds-table_bordered selected-apps-table slds-table_fixed-layout"> ...
0
votes
0answers
41 views

Table headers not wrapping in slds table

I have used slds table <div class="slds-wrap slds-cell-wrap slds-p-top_xx-large"> <table class="slds-...
4
votes
1answer
68 views

Security Question AuraEnabled Dynamic SOQL

Let's say I have an Apex Class like this: public with sharing class AuraUtils { @AuraEnabled(cacheable=true) public static List<SObject> databaseQuery(String queryString){ List<SObject&...
0
votes
1answer
24 views

AuraEnabled returning success records instead of failed records

I have apex AuraEnabled function which is inserting records for a junction object, however due to some validation rules, some of the records may get failed. So I have a solution to maintain a list of ...
0
votes
2answers
42 views

Problem setting value of text in lightning component from js helper

So I created for te first time a lightning component and I'm just getting familiar with it all. What I did was create the apex controller, the lightning component, the js contoller and the js helper. ...
0
votes
1answer
178 views

Custom Script Eval error on lightning application initial load

So I'm working on a legacy file at my new job and I'm getting this error: Custom Script Eval error in the resource loaded using 'ltng:require' [[object Event]] when a custom aura application is ...
0
votes
0answers
14 views

How to navigate cursor from one component to another in record detail page?

I have 2 components added in detail page of record(One is at the top and another is at somewhere middle). On click of a link in first component I have to navigate(auto scroll) to the 2nd component ...
0
votes
1answer
19 views

Change input value using javascript

I have an input in a form built with aura: <input class=" input uiInput uiInputText uiInput--default uiInput--input" type="text" aria-describedby="5284:0" placeholder="" id="7:4790;a" data-aura-...
0
votes
1answer
18 views

lightning:buttonMenu value not coming in controller

I am using lightningmenu item in an aura iteration event.detail.menuItem.get("v.value"); Compoennt Code <lightning:buttonMenu iconName="utility:down" onselect="{!c.onButtonMenuSelect}" ...
2
votes
1answer
240 views

Implement a table using LWC

I would like to implement a table in Lightning Web Components, which would use standard library components and implement the desired outcome. This is listing of table.html file <template> &...
0
votes
1answer
122 views

To call apex method every time when attribute changed

I have 2 components: - parent is Aura component - child is LWC component child component surround with aura:if and rendered in particular case. I need to call Apex method every time when 'param' ...
0
votes
1answer
146 views

Display image in salesforce lightning component

I have a contentversion file which I am using the following tag to view in my lightning component <img src="/sfc/servlet.shepherd/version/download/0690w0000000IPS"/> However, it is downloading ...