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.

0
votes
1answer
25 views

Storing salesforce username in local storage whenever user login into salesforce [on hold]

any idea or suggestions on how we can store salesforce username to local storage in browser whenever user login into salesforce ?
0
votes
0answers
22 views

Drag and drop COLUMNS using lightning

I have seen multiple links to drag and drop rows in lightning but can we do drag and drop columns in lightning Example1 of drag and drop rows : https://developer.salesforce.com/forums/?id=...
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
67 views

Lightning empApi Not working in lightning component [closed]

I am currently displaying lightning component with list of cases, as soon as new case has been created at the back end, the front end lightning component should show new cases without refreshing the ...
0
votes
0answers
41 views

Salesforce Lightning CORS issue: Failed to execute postMessage on DOMWindow

Synopsis: we have a Salesforce lightning app that works fine in the dev org, but once we create a managed package and install it in orther orgs, if fails with this CORS error: Failed to execute ‘...
1
vote
1answer
67 views

Error: [LWC error]: Invalid url value “”. Expected a non-empty string

Error Details I keep seeing this error in my Developer Console each time I load a page or a Lighting Component in my Lighting App. Please note there are no LWC components in the app. I see my ...
0
votes
1answer
35 views

popup on case object edit page, when a picklist value is selected

Is there any way I can have a dialog box pop over on selection of particular picklist in the standard case object. My use case is: If the user selects one of the picklist value from the dropdown in ...
0
votes
0answers
22 views

Add News Standard Component to a Custom Component [duplicate]

I have a requirement as to make the New Standard component (that can be set in any lightning page from lightning app builder) conditionally rendered. To that respect I am trying to create a custom ...
1
vote
0answers
60 views

Public Page: Lightning Upload not attaching documents [closed]

We are working in lightning and created a flow to upload files. when we are calling the flow in visualforce page and using the page on a public website, its upload file functionality is not working on ...
1
vote
1answer
63 views

Lightning pageReference state no longer contains my parameter/attribute in Summer 19

Ran into an issue after the Summer 19 preview in my sandbox. I have a Visualforce page re-directing to a lightning URL Accessible component passing in a parameter, here is the controller code: ...
1
vote
0answers
30 views

Salesforce Themes and Branding not showing in Lightning App

I have Codey Canyon theme enabled (the orange one), but a Lightning App which is being used in a Visualforce page is still showing the standard blue theme. Visualforce page <apex:page showHeader="...
2
votes
0answers
64 views

Lightning Web Components file preview does not work on mobile version

I created a component in LWC which uses standard Salesforce file preview. It is perfectly working on desktop but nothing happens when I press file name on mobile version. My html code is below: &...
11
votes
2answers
2k views

How to pass query parameters in URL in Salesforce Summer 19 Release?

The requirement was to open a Lightning App page and pass some query parameters in the URL. These query parameters were then used to query data and display in a Lightning component present in the ...
0
votes
0answers
19 views

override standard component styling

I have a request to change the icon color of different feed items on the standard chatter feed component. Feed items that are of type question have the same color icons and field updates. A question ...
0
votes
1answer
146 views

Hide Standard Page Header in Custom Lightning App page

Is there a way to hide the page header in a custom Lightning App shown below ? This banner is not available in the Edit page section. I have selected 'One region Template' and added just one ...
0
votes
1answer
95 views

Why lightning:fileUpload doesn't work on public sites?

I'm using lightning:fileUpload inside a lightning component and I'm testing it on a public site, but when I attach a file/files the modal box with the Done button doesn't show up. When I'm testing ...
0
votes
1answer
172 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 ...
2
votes
1answer
27 views

How to make Action Button appear for certain opportunity stages?

I have a custom button called 'Revenue Forecast' in the 'Salesforce Mobile and Lightning Experience Actions' in my Opportunity layout. How do I make this button appear/diaasppear only in certain ...
0
votes
0answers
16 views

Navigate from one lightning Component to Lightning App builder

Can we build a Lightning app builder with different components and save it and redirect a Lightning component to that app builder page. Scenario - Since GoogleDoc object record details cannot be ...
0
votes
1answer
88 views

Lightning Component empAPI in LightningApp [duplicate]

this is a follow up question to Platform Event - lightning:empApi. however in my case the component is not working in a standalone Lightning App, but it is working when implementing it on the ...
0
votes
1answer
52 views

How do I show a tooltip on hovering over a star rating lightning component?

I have this star rating lightning component. I need to show a tooltip that shows the number of the star that the cursor is on and not the rating that is selected. I know I can get the value of rating ...
0
votes
1answer
18 views

How to Hide or remove New button on case Object for particular profile in Lightning?

Need to restrict by creating cases for a few profile users. The new button should not be visible or hide for a particular profile user in lightning experience. How to do this? Is there any ...
2
votes
0answers
38 views

How to switch into a specific app in Lightning Experience from a link?

In Classic, the "Tab Set Id" (tsid) could be included in a link to switch the selected app. (Yes this is URL hacking.) It looks like in Lightning Experience such switching is not possible: Deep Link ...
0
votes
1answer
60 views

How to use the Streaming Monitor app?

I have downloaded the app, installed it, added myself to its permission set. Still, I cannot do anything in the tab. See the screenshot. The AppExchange page does not give any instructions, the Github ...
1
vote
2answers
137 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
26 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 ...
3
votes
1answer
264 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
50 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
41 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
14 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
107 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
70 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
485 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
86 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
214 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
504 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
16 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
56 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
43 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
46 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
208 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
235 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
347 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
155 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
211 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
45 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
39 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
33 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
47 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 ...