Stack Exchange Network

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

0
votes
1answer
10 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
0answers
18 views

lightning component to sort task based on status then second priority is created date

I am trying to sort the lightning component of task based on status then by created date. When I click on sort by Status, it should update the second sort of created date by ascending. So in the below ...
0
votes
2answers
29 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
25 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
32 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
23 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
13 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
31 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 ...
0
votes
0answers
17 views

How can I launch my aura:application from Salesforce1 mobile?

I have created a Lightning aura:application page and I would like to launch this from the Salesforce1 Navigation menu. I have added the force:appHostable but it still does not come up in the list of ...
2
votes
0answers
15 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
25 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
15 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
23 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
26 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
48 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
34 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
21 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
23 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
33 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
103 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
96 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
28 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
121 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
108 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
29 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
128 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
42 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
74 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
280 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
55 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
45 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
151 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="...
0
votes
3answers
37 views

How do you delete a custom object with a Lightning record page from Managed package?

I believe we can delete custom objects in a managed package once all dependencies are removed. Unfortunately we have a Lightning record page created for one of these custom objects. It seems we ...
0
votes
2answers
114 views

Adding CSS class (addClass) not working

I am trying to hide "nonPaying" aura:id on component initialization, but it's not working. Below is code snippet. Markup <aura:component> <aura:handler name="init" value="{!this}" ...
0
votes
1answer
14 views

Is it possible to assign different page layouts to an object on different apps of one org?

I have a quick question please. This is the situation: I am connected to an org. Let's assume this org have 2 apps using the same object. Is it possible to use a different layout for that object ...
0
votes
0answers
35 views

Lightning Application “Input Too Long. [1, 217]” error with no debug log produced

Does anyone know what is Input Too Long. [1, 217] error? There is no Error details in browser console nor there is any Debug Log generated at all. The issue is being noticed from a Lightning ...
1
vote
1answer
46 views

Risk of CSRF In Lightning Applications

Could a package fail security review due to a lightning application that executes an initialization action on load that creates a record? e.g. user visits https://[instance].lightning.force.com/c/...
0
votes
0answers
27 views

Service App Remove Visibility of Profile

Would like to remove the visibility of the standard service app on external profiles since they can access the internal org using the app launcher of the community. As of now, the default and visible ...
3
votes
1answer
78 views

Unable to open another Lightning Component in a Modal pop-up when called from within a Lightning app

Here is my first Component called Modal: <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
0
votes
1answer
177 views

Select2 JQuery onChange disable Button

I am using select2 JQuery in my lightning component and i have to disable button on this component once all values are selected. below is sample Code. MarkUp <aura:component controller="...
0
votes
1answer
22 views

How can users access my lightning application without logging in

I created a very simple lightning component in Lightning. component with few fields and submit button I associated that application with my client website. But when was testing it. it is asking login ...
0
votes
2answers
177 views

lightning:inputAddress field value access

I have lightning component with lightning:inputAddress field and i need to access value of Address fields entered by user like Street, City etc. How can i access it? below is my sample code: Mark Up ...
1
vote
1answer
25 views

Can we add Non-Black field validation in js when creating record using force:createRecord

I have created a component which has a button. onclick event on the button navigates to record create page . I have used force:createRecord for this. However I want to add a validation in js that one ...
0
votes
0answers
30 views

Application Event information is not propagating to next component

I am trying to Application event to propagate information of one component to another. I have few components. Below is sample Code: I can access Account Event values in Payment Controller, But i am ...
0
votes
0answers
162 views

Dynamic row actions for “Action” column for lightning:datatable

I have requirement where i need to show actions in lightning:datatable but it should be different according to configuration. like i want to hide one of the action for one row but as of now we can ...
0
votes
3answers
909 views

i want to filter Related list - single based on the child fields in lightning

I have a requirement where I have to add multiple related list of same object base on the some filter criteria in Salesforce Lightning. For exm: Contact Roles is child object of Contact, now I have ...
0
votes
0answers
30 views

How do I modify the $Site.allowStickyUrlParams site setting?

Internally, it appears this setting is used in lightning communities to determine if query params are cached onto an object and re-added during route changes in Spa.js. I'd like to not cache query ...
0
votes
1answer
304 views

Lightning Navigation API - PageReference to Lightning Page Not Working

Any thoughts on why the pageReference here keeps erroring as Page Doesn't Exist? According to docs https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/...
0
votes
1answer
158 views

How to configure Tab visibility on Lightning App builder to be based on a boolean attribute of the record type

I was wondering if it were possible to have a custom tab's visibility in the Lightning app builder be dependent on an editable boolean attribute on the record? i.e as soon as a checkbox on the ...