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 [lightning-apps]

A Lightning app is a special top-level Lightning component whose markup is in a .app resource. On a production server, the .app resource is the only addressable unit in a browser URL.

1
vote
2answers
26 views

Sending wrapper object to apex controller from lightning component

I am trying to send a wrapper class from lightning component to Apex controller. But it is throwing following error: This page has an error. You might just need to refresh it. Error in $A.getCallback(...
0
votes
1answer
12 views

Customize Standard Chatter Component

A previous developer added custom inner tabs in the Standard Chatter Component. When I go into Lightning App Builder for my app, there doesn't appear to be a way to remove the inner tabs. I want to ...
0
votes
0answers
20 views

Is there a way to reload lightning:recordEditForm? [closed]

Hi I am using multiple lightning:recordEditForms in my Ltng component & want to selectively reload one of them. Is it possible to do so? In lightning Data service, we have a way to reload record ...
2
votes
1answer
32 views

Custom message in AuraHandledException: is it possible?

How about situations, when I haven't Exception (it's not try/catch), but I still need to send a custom error message to the toast? When I try to use throw new AuraHandledException('My custom msg here')...
0
votes
2answers
32 views

Why I can't see my error msg from apex in lightning component?

What is wrong here? I see only Error on toast. let toastEvent = $A.get("e.force:showToast"); action.setCallback(this,function(a){ let state = a.getState(); if(state == "...
0
votes
0answers
20 views

How to control the Label of a visualforce component in a Lightning App Page

We have a Visualforce page we are embedding in a Lightning App Page. We want the label of this section of the page to have a translated title, but we are running into issues: If the 'Label' field is ...
0
votes
0answers
10 views

Lightning record creation error issue

Our org has a very customized interface for Cases and, in migrating it to Lightning, I've encountered a strange issue I'm hoping someone can suggest a fix for. The error is encountered during the ...
0
votes
1answer
32 views

Pre populate Date and Boolean value in createrecord lightning

I am getting the values from controller for the fields PaymentRequired__c(Checkbox), PaymentDate__c(Date) and assigning it to the default values of createRecord. But the value which i am getting for ...
0
votes
1answer
50 views

Unable to create a managed package which has a component with lightningQuickActionWithoutHeader interface

Getting the following error - You can only create Lightning Component Quick Actions for Component Bundles containing a component that implements force:lightningQuickAction and has no required ...
0
votes
1answer
77 views

How to pass record id From VF page to Lightning component?

VF Page: <apex:page standardController="Opportunity" extensions="P2EcRequestType" lightningStylesheets="true" standardStylesheets="false" > <apex:slds /> <apex:includeLightning /> &...
0
votes
1answer
16 views

Task disable on the parent Record [closed]

I have to objects ,one is Account as a parent and contact as a child, In contact object i created a task that task showing on the account. that task not display on the account ,how can i achieve it?
0
votes
1answer
34 views

If I run a Component from App then Event like showToast,closeQuickAction,navigateToURL are not working [duplicate]

I am calling Component from App, in that case the Events like showToast,closeQuickAction,navigateToURL are not working. Please find and let me know how can I resolve this Test.app <aura:...
0
votes
0answers
80 views

Lightning Gantt Chart Development

I am developing a gantt chart based on the object in our org and got stuck in between. The aim is to define a range of date on X-Axis(Due Date and Completed Date) and Y-Axis should contain the name ...
0
votes
2answers
70 views

How to change a class of 1 element through onclick from 2 element?

I have 2 lists. First is all my objects. Second - selected object (I use "Select" button to add my obj to second list but without deliting it in the first list). I can also delete the objects from the ...
0
votes
1answer
14 views

Edit native component frontend (Activity view)

is there any way to edit how a native component such as the list of tasks shown on accounts, opportunities etc behaves? I would like to do things like "extend all notes by default". I did not find ...
0
votes
0answers
35 views

Lightning Application CSS rendered inline

For all lightning applications in my sandbox, I'm noticing all of the SLDS CSS is being rendered inside an inline <style> tag - over 4,000 lines of CSS inline. I would have expected the SLDS CSS ...
1
vote
0answers
33 views

Lightning component works properly on Sandbox but does not on Production

I have a Visualforce page that uses $Lightning.createComponent to handle Lightning component. This page has standardController="Account" and used as replacement of standard action "Create new Account"....
1
vote
0answers
34 views

Change the style of 1st list's element through onclick from 2nd list's element

I have 2 lists. First is all my objects. Second - selected object (I use "Select" button to add my obj to second list but without deliting it in the first list). I can also delete the objects from the ...
3
votes
0answers
59 views

Lightning datatable not loading data when scrolled to the bottom

I have created a lightning component which has a lightning:datatable that loads more data as I scroll down. The data loads fine when I use the component explicitly in an app. In the below picture ...
0
votes
1answer
47 views

Change the div's css style in <aura:iteration>

I have a component: <aura:iteration items="{!v.objects}" var="obj"> <lightning:layout multipleRows="true" class="layoutBigCardsColumn"> <div class="slds-...
0
votes
2answers
94 views

String Split function is not working in the Lightning JS contoller

I am getting array of string from component's attribute to lightning controller, now I want to split that string to comma separated values and want to assign that to another component variable but ...
0
votes
1answer
49 views

How to send the div's style through button's onclick in <aura:iteration>?

Even the example from "Lightning Aura Components Developer Guide " doesn't work. I can't set the style to my div. It's because of iteration. How can I fix that? cmp: ...
0
votes
2answers
90 views

Delete an array element using event.getSource().get(“v.name”)

I try to get index, but it's always -1. JS: close : function(component, event, helper) { let vacancies = component.get("v.vacancies"); //an array let vacancy = event.getSource().get("v.name"...
0
votes
1answer
42 views

Array with saving previous objects in Lightning

I need to make an array for iteration selected objs in future. But when I push needed element, it updates. It's because I always call a new var: var objs = []; How can I add the element right? My ...
0
votes
0answers
26 views

How can I create Product Request via FSL Mobile Version?

Greetings I've been having the following problem in the Field Service Lightning Mobile App. As a dispatcher I want my crew to be able to Request the products that they will be using during their work ...
1
vote
1answer
32 views

Good example of capturing Server Side Errors

Does anyone have a good example of how to capture server side errors when I am creating new records? I have been searching and am struggling to incorporate a message to the user if a duplicate record ...
2
votes
0answers
39 views

Salesforce1 on focus on textarea header top is hiding

I have seen the same, or a similar, issue. The problem I encountered also occurs on a mobile device (Android in this case) with a textarea component at the bottom of a container component that extends ...
1
vote
0answers
84 views

showToast is not working in iOS device

Here what i have written code to display 'showToast' message in lightning component and It's not working in iOS (but yes it working as expected in Android and Web). handleFpAdd: function (component, ...
1
vote
0answers
20 views

LEX App Component Recommendations not displaying [closed]

Under Feature Settings >> Communities >> All Communities I have created a community named Creative Creators. I open the workspace for Creative Creators and select Recommendations Tab. I create an ...
1
vote
1answer
27 views

Lightning App Custom Nav Tab Showing Recent List not Lightning Page

My ignorance is going to be on full display here. As I am learning I have developed a custom Lightning App called WidgetServices. When I select WidgetServices I have 5 navigation tabs. 1 For ...
0
votes
0answers
27 views

How to list multiple lightning components?

I have developed 2 components, the first component will work in the Service cloud and the other component will work in Community. How can I put these two components under the same publish listing? Is ...
2
votes
1answer
68 views

SF Lightning Component issue: not able to replace a textarea with third party text editor

We need a rich text editor which supports images and word like formatting, so I did investigation and come up with a third party JS based web editor called Froala. I did initial R&D to understand ...
0
votes
1answer
107 views

How to display old and new values in Lightning field

I have multiple lightning input field and my requirement is to display the old and changed values of the field in separate view. I am newbie to lightning and I am struggling to figure out the concept. ...
1
vote
1answer
48 views

Access Check Failed! AttributeSet.get(): attribute 'searchText' of component 'markup://c:MyContactSearch {3:0}' is not visible

So, this is an error where I am kinda stuck with nowhere to go. I really donno how to resolve this as the code block looks all good to me. I am very new to lightning with only 2 days of lightning ...
0
votes
1answer
102 views

lightning:select onchange to access other field of object array

I have lightning component which contains picklist which holds list of Assets and onchange function i need to access other fields of object which returns from Apex controller. Can you please help me ...
1
vote
0answers
47 views

create account from a button inside aura iteration and set account id to the adjacent lookup column

I am new to lightning. I am inserting list of contacts in aura iteration with account lookup. I made custom component for searching account, which works fine. But i also need to give option to create ...
0
votes
0answers
25 views

Can't Activate a Lightning App Page in Managed Lightning App?

We have a managed lightning app that contains several navigation items. Once the package is deployed we found that we cannot activate a custom lightning app page for that managed app (or any managed ...
0
votes
2answers
408 views

How to detect browser in lightning component for desktop and mobile both

I need to detect browser type (IE, Chrome, Safari etc.) in the lightning component but navigator.userAgent is not working in lightning.
0
votes
1answer
248 views

issue with lightning lookup using lightning input field

Guys I have embedded a lightning component on a VF Page, so there is a lighting lookup field on my component, the lookup is perfectly working fine except onething. So usually when we start typing in a ...
1
vote
0answers
34 views

Visual Force page is not invoking lightning component

I have created a managed beta package for testing purpose and I have installed it on a newly created fresh org. The managed package includes a Visualforce page which invokes a lightning component. ...
-1
votes
1answer
392 views

How to drag and drop the records using lightning component?

I need to drag and drop the records in contact object. for example i am having 10 records in contact object.when i drag the 6th record to 4th record, need to replace the 6th record to 4th and 4th ...
0
votes
2answers
185 views

need to call force:createRecord from lightning component used in visual force page

I am try to call lightning component from VF Page and trying to call force:createRecord from lightning component. but getting below error message: This page has an error. You might just need to ...
3
votes
1answer
33 views

Lightning App/Cmp - URL Query Param Vulnerabilities

I was wondering if you guys have an idea of vulnerabilities for URL params when used in lightning. I've tried Cross-Site Request Forgery against the app and its been safe. We also have a URL ...
2
votes
2answers
201 views

Lazy Loading for Lightning Components

Need some advise. Following is the code for lightning app, where all components are included. I am running out of various governor limits when they execute together. Hence, I am planning to make their ...
4
votes
1answer
56 views

Programmatic way to switch apps?

Is there any programmatic way - Apex, Lightning, URL, etc - to switch a user from being in one Lightning App to another? E.g. the equivalent of the user clicking the upper-left dots menu, choosing ...
0
votes
2answers
174 views

Does Lightning:navigation does not work in a component which is created in a Visualforce Page?

I have a VF page where i am creating a lightning component(createComponent and App using ltng:outApp). In this lightning component i am trying to use lightning:navigation. Also tried using e.force:...
0
votes
1answer
812 views

How to display image in a lightning component

My files are stored in 'files' under App launcher. I have a Rich text box field 'description' in a object wherein i enter text and images. Here, the images are entered as tags. the 'src' attribute ...
0
votes
1answer
151 views

How to retrieve Lightning Record Page / Flexi Page information

How to retrieve the Assignments By App, Record Type, and Profile details of a lightning Page. Currently I'm able to retrieve all other information but not this information.
0
votes
1answer
96 views

Dynamically update Lightning path (Chevron)

My Lightning/Salesforce Path was displaying the Chevron based on the Case Pick list field which has 15 pick list options. Every Case is unique and doesn't require all the 15 options, how can I make my ...
1
vote
2answers
233 views

Lightning:icon is not working in Lightning:tabset after an update of Winter '19 release

I have a problem regarding on displaying lightning:icon in Lightning:tabset after an Winter 19 update the Lightning:icon is not displaying an image. Here's my code: <lightning:tabset variant="...