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
1
vote
1answer
27 views

How to have VS Code only create some of the component files by default?

In VS Code, when I create a an Aura Component, it creates the full Aura Component Bundle with all the files. Is there a way to limit what it creates? Ideally, limit it to the helper, controller, cmp, ...
0
votes
1answer
22 views

Display LWC component as a full width and height page but not via VFP

Is there any way we can display LWC as a separated page similar to VisualForce page? I know we can create an app than aura component which holds LWC component on VFP but we don't want to use VFP at ...
0
votes
0answers
15 views

How to Capture Response from 3rd Party Application back to Salesforce in Canvas App?

Requirement: There's 3rd party application in our Organization which is used to upload the document. Once we upload the document in that application we want to fetch Document Id as Response back to ...
0
votes
1answer
19 views

Bind function in aura

Need to do without CSS+HTML I want to show a custom label on hover. I am using below code **HTML* <aura:attribute name="isHover" type="Boolean" default="true" /> &...
0
votes
0answers
12 views

Put Lightning:button inside a COMPONENT in AURA [closed]

How can I put this button in the place that I point out in this image? Here is the code: <c:pdfGenerate showSendButton = "false" servletData="{!v.url}" parentRecord="{!v....
0
votes
3answers
15 views

Styling Button in AURA COMPONENTS

How can I apply CSS Styles to an Aura button? Here is the code: HTML: <lightning:button class="other-devices-button" label="Close" title="Close action" onclick="{!...
0
votes
0answers
14 views

Not working jquerry CSS and JS

I write the code for jquerry and this is not working, it's not show properly search bar and pagination. Aura Component :- <ltng:require styles="{! $Resource. datatable + '/DataTables-1.10....
0
votes
0answers
21 views

Aura Component not working as expected

I'm very new developer and I'm stuck. I'm trying to adapt an Aura Component that I found on internet to my needs, but I can't make it work (The original I found works fine). Basically what I want is ...
0
votes
1answer
19 views

Getting Values from lightning:select and lightning:input fields of dynamic form

Everyone, Looking for help on how to get the selected and input values in a Controller from a dynamic form. I can get the Name and Id of the fields, just not the values input or selected. I've tried ...
0
votes
1answer
12 views

If conditions while passing paramters to child component in aura

I am trying to pass a value from parent to child component in the following manner <c:contactSelect accountId="{!IF(v.proposal.CurrencyIsoCode != 'US' && v.proposal.BillingCountry__c !=...
0
votes
1answer
23 views

dynamic values to radio buttons [closed]

Im getting a http response which contains names of the groups. Im trying to show the groups on the aura component and also do further operations. apex code @AuraEnabled public static List<...
1
vote
1answer
66 views

passing list of string from apex controller to javascript->aura component

I'm trying to pass a list of string from Apex controller to Javascript but it does not seem to work Code I tried: Apex class @AuraEnabled public static List<String> getGroups(){ string ...
0
votes
0answers
27 views

LWC: lightning-file-upload dismiss or X button malfunctioning

I have the below LWC lightning-file-upload component. fileUpload.html <template> <lightning-card title="File Upload" icon-name="custom:custom19"> <lightning-file-...
0
votes
1answer
24 views

Null id is getting pass to flow in aura component

I have created 2 component. from Component1 I'm calling Component2 to open flow in Modal which is working as expected. But when I'm passing Id from Component1 to Component2 it is showing as blank in ...
0
votes
2answers
19 views

How to open an object for viewing from the “datatable” table?

I am new to Salesforce. Now I am trying to solve this problem. I want to open it for viewing by clicking on the name of the contact. I did not find such an example in the documentation. Hope it is ...
0
votes
1answer
45 views

How to fill the date field

I have a lightning component code,which the date field is autopopulated from the code. obj['CloseDate']= new date(); Is new date function is no longer in salesforce?How to rectify this error?
0
votes
0answers
19 views

Date field error message displays previous value of other date field

I have from & to date fields & used some validations with min, max attributes. On changing To Date field, in controller method called I check validity of both From & To Date fields. Error ...
1
vote
0answers
23 views

The aura component implementing the “forceCommunity:themeLayout” interface is not being fully reloaded during navigation

BACKGROUND I'm implementing the Salesforce Lightning Community. I have 2 community pages with 2 different custom layouts (implementing the forceCommunity:themeLayout interface). I'm facing the issue ...
2
votes
1answer
416 views

Why does the test fail?

I am learning testing and came across the following: why is my test method not working as I expect and returning 0 records to me? //test method @isTest static void searchContacts(){ Contact ...
0
votes
1answer
31 views

Display number in table where there are two iterations

I am trying to display numbers in a table where there are two iterations. but if I use indexVar attribute the numbers are not displaying in sequence. Is there any solution to it? Is there any other ...
1
vote
1answer
34 views

How can I remove classes that I am not testing from the list of “Overall Code Coverage”? [closed]

I started researching testing and I had this question. The list contains all the classes that I managed to create during the training. Can only the necessary ones be left here and how to do it?
0
votes
1answer
11 views

How to get initially loaded inputField value from sObject?

I need to get the initial inputfield value from the database before user make any changes. <aura:handler name="render" value="{!this}" action="{!c.onRender}"/> <...
0
votes
1answer
43 views

How do I convert an object to an array?

I have a searchContact method in the helper. I get from the component a list of contacts of type object and try to convert it to an array. I want to be able, after conversion, to refer to each element ...
0
votes
1answer
57 views

select the first radio button by default in lightning:datatable aura component

I am using lightning:datatable aura component. I am producing radio buttons on every row. I am also able to select only one radio button. The query is I want the first row (radio button) to be ...
0
votes
1answer
29 views

How can I call other methods from the current method?

I am trying to do this, but nothing works ... I am a beginner. //helper js getDataFromDB : function(component){ let action = component.get('c.getListContacts'); action.setCallback(this, ...
0
votes
1answer
25 views

How to communicate between child LWC to parent AURA

I have created the LWC component dynamically from AURA popup, on click of cancel button in LWC component I need to close the popup in AURA, I tried to publish LMS from LWC and handle it in AURA to ...
0
votes
1answer
27 views

How to set a default value on Lightning Component Option Select without changing the order

Can someone help me with this line of code as I am still new to Development and learning it. On the below lightning component code, the default value shows as "Call" and now the business ...
0
votes
1answer
35 views

How to access browser's “window” object in Aura component

I have third party JS file that I have imported in Salesforce as Static Resource Structure of static resource: myuploadzip.zip ----myuploadzip.JS I have imported the same in Aura Application as below:...
0
votes
1answer
32 views

How to show on the page about the successful addition of an item to the database?

After adding a record to the database, I am trying to display a success notification, but I am running into an error. What have I done wrong? Here is my code: //cmp <aura:component controller="...
0
votes
0answers
12 views

How to close a modal visualforce page (with child aura that itself wraps a lightning web component)

I have a visualforce page that I am using as a Custom Action on the CPQ Quote Line Editor page. I actually only need a lightning web component (lightning-record-form) but due to technological ...
0
votes
1answer
61 views

Failed to save ListView.cmp: No MODULE named mockdataFaker found: Source

Getting the below error while trying to create a data table using the link -https://developer.salesforce.com/docs/component-library/bundle/lightning:datatable/example Failed to save ListView.cmp: No ...
0
votes
1answer
45 views

Alternative to Workspace API for LWC

According to Lightning Experience Roadmap there is no hope for support Console Workspace API with Lightning Web Components in near future. When we create LWC application for Salesforce Console - one ...
0
votes
1answer
42 views

How to prevent 403 errors when using S3 presigned URL in image tag? [closed]

I'm having a signature mismatch issue when attempting to use signed URLs within image tags in an aura component. I call the controller to calculate the signed URLs for a number of different image ...
0
votes
3answers
45 views

How to prevent executing some method from running twice

I have a static method named ABC in apex which is called multiple times from aura due to iteration So in ABC i have few methods which need to be called only once in the first iteration. How can ...
0
votes
1answer
15 views

email validation in input field

i have a login box. While entering email then the box outline should be red and once a valid email address is entered then the box outline should automatically change to green. How to achive this in ...
0
votes
0answers
13 views

Object's field value into an aura component

I am not very familiar with aura component. How I get the value of a field into an aura component (more exactly, inside the controller .js of a component)? (Es: status of case) Thanks in advance :)
0
votes
0answers
14 views

lightning-record-form in an aura parent component. How to add this to a related list page?

I'm not even sure this is possible from what I have been reading. When you visit a Quote record page and then select the "Quote Lines" link you are brought to a single page with nothing but ...
1
vote
1answer
43 views

Getting content security policy error while loading react component in lightning:container

I am importing a react component from static resource in lightning container, that component itself communicates with AWS. When I load this component in lightning:container, I am getting below errors: ...
0
votes
1answer
16 views

Uncaught Error in $A.getCallback() [State is not defined] Callback failed: apex://label.ContactListController/ACTION$createContact

component - > <aura:component controller="ContactListController"> > <aura:attribute name="accountId" type="String"/> <aura:attribute name="...
0
votes
1answer
34 views

lightning-record-form in an aura parent component “Save and Next” button. How to set mode and clear record?

I have a lightning-record-form LWC component wrapped in an aura parent component so I can use it as a button on my Quote records. The lightning-record-form comes with cancel and save buttons for free ...
0
votes
2answers
23 views

Can you return a variable from a Flow to the Aura Component that launched it?

When a Flow is launched from an Aura component as in the example below, I'd like a variable from the Flow to set an Attribute on the Aura Component that launched it. Is this possible? <aura:...
0
votes
1answer
23 views

Automatic reload of aura component if a record is updated asynchronously by a 3rd party application

Let's say in my custom aura component, There's a spinner that indicates that we're still processing your record. What I want to happen is if that aura component is still open in a tab and a record ...
0
votes
1answer
24 views

Aura Component / Controller.js debugging : custom follow / unfollow button for Knowledge Article

I have created an aura component to allow client to follow /subscribe to an article. When a user clicks on the button subscribe, a record is created in Salesforce /Record created in Salesforce/ ...
0
votes
0answers
27 views

Custom Lightning / Aura Component not rendering a dynamic list unless manually refresh page

Hey so I have a custom Aura / lightning component on the Quote object pages. The component basically as a user search bar that searches for users. It's built basically using this lightning design ...
0
votes
0answers
30 views

Update records using input data in aura

I have an aura component with records <section class="slds-card__body"> <div id="list" class="row"> <table class="slds-table slds-...
0
votes
1answer
33 views

How to render one component after another

I have an aura component which is a combination of forceChatter:Publisher and forceChatter:feed. But here in my case forceChatter:feed is getting rendered before forceChatter:Publisher. I want ...
0
votes
1answer
13 views

Problem with aura and JS controller

I have a little problem. I have a simple program that gets a value from picklist , and using this value my program must show all values from the database Thats my code COMPONENT <aura:attribute ...
0
votes
1answer
24 views

Stuck with Duplicates on InfiniteLoading using aura:lighting:datatable

I am trying to get the lightning:datatable running but I am getting duplicates when on 'Load more', on scrolling. The initial load is fine but only the scrollbar is bringing loads of duplicates which ...
0
votes
0answers
15 views

Question with Aura Table Header

I'm developing an aura component, with a specific table inside it. The headers of the table must be as the image below. The Margin column must stand above the principal row of the header. I searched ...
0
votes
1answer
16 views

Salesforce Console Aura component, Looking for option to open multiple tab within same console window

I have one Aura component which has button, I need to open few urls (for time being take it as hardcoded url as Google, Ping , Facebook) within sale console window adjacent to each other. I want that ...

1
2 3 4 5
19