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.

Filter by
Sorted by
Tagged with
3
votes
1answer
575 views

CORS issues with Lightning Out and managed package

I have the following situation : Dev Org A, with package domain orgA and my domain orgA-dev-ed.my.salesforce.com Created a package packageA, which contains : - a static resource : a zip containing a ...
5
votes
1answer
2k views

Programatically add focus on ui:inputText

I'm afraid I'm hitting a limit of Lightning here, but I'd thought I ask here as a last resort. I want to programmatically add focus on a field in a form. I now have code like this; Markup: <ui:...
0
votes
0answers
22 views

Company logo not showing up at top left of sales app

I have uploaded a new company logo for sales app in lightning app builder, the logo is only visible to system admin profile user but it's not visibling to a custom profile user.
2
votes
2answers
405 views

Vf Page on lightning home page giving error

I have created a VF page to display Feeds on lightning home page. <apex:page showHeader="false" sidebar="false" > <chatter:feed entityId="{!$User.Id}"/> </apex:page> this page is ...
0
votes
2answers
974 views

Adding home page components from salesforce classic to lightning pages

Is there a way to add the custom / standard salesforce home page components from the salesforce classic to lightning pages. I am not able to see the components listed for home page under lightning ...
0
votes
1answer
758 views

force:inputfield trigger events

I am trying to trigger events in force:inputfield which is binded by Sobject lookup.How to identify value change of the field.I tried in two approach: <aura:registerEvent name="testEventFired" ...
1
vote
1answer
830 views

CRUD with help Lightning Component

Please show me example how work with CRUD in Lightning Component: I want to create order system for restaurant. User is waiter. He make all CRUD operation with orders. There are "close" and "open" ...
0
votes
1answer
76 views

Guest User cannot access @AuraEnabled Apex Controller

I created a force.com Site, which uses a LWC in Visualforce page. It seems that the Guest User cannot read the records and even if I preview as admin the Site still the records are not showing. Guest ...
2
votes
2answers
768 views

Change the Case tabs to the Subject instead of the Case Number in Lightning(Service Cloud)

Is there anyway to change the Case tab title to the SUBJECT instead of the CASE NUMBER in Lightning(Service Cloud)? Please see below snapshot. Your help will be highly appreciated. Thanks in ...
2
votes
3answers
633 views

Scroll bar not appearing on ipad 3 for a div element

I am not able to get the scroll bar working for a div element. It works fine in all browsers, the issue is only on Salesforce1 app. Any help would be great.Thanks in advance. <aura:component> &...
1
vote
1answer
17 views

Error in $A.getCallback() [Cannot read property 'setParams' of undefined] Callback failed When Dismissing Alert Message

I created and displayed a custom list button in standard Lead list view. This references a Visualforce page. Clicking this button makes an action, and there's nothing wrong with the results in the ...
3
votes
1answer
978 views

(Properly) Link to custom Lightning App from record detail page?

I have a custom lightning app. How can I link to this app from a record's detail LEX page (e.g. Opportunity) and pass the Opp's ID to it? The end-user is supposed to launch the app and do some ...
2
votes
1answer
26 views

Best practice for distributing LWC lightning app in managed package

I am distributing a managed package which includes a lightning app built with LWC. In my dev org I needed to enable My Domain to get it to work. I've tested installing my package on an org without My ...
0
votes
3answers
2k views

how to set the language in lightning?

someone has been able to pass the language by parameters to a ligthing component as visualforce does. <apex: page language = "en"> I have a requirement where the user can select different ...
2
votes
1answer
490 views

How can we detect and apply Lightning Experience defined Themes and Branding css styling in Lightning Application?

I'm looking to build a custom Lightning Application (not a Lightning Component). Now, SLDS base component does work nice, I've noticed that Themes & Branding applied theme color do not gets ...
4
votes
2answers
672 views

Facing an issue in Lightning App

I am working on one AppExchange app on Salesforce Lightning. I have successfully completed development of that app. But while testing, found one very weird issue. Please check following issue, Issue: ...
2
votes
4answers
3k views

Error: ERR_TOO_MANY_REDIRECTS while loading Lightning App

I'm getting ERR_TOO_MANY_REDIRECTS error in browser console while opening the lightning app. This doesn't affect the functionality though, it is making delay in loading completion of the app. I'm ...
0
votes
2answers
4k views

Quick Action on related list

In lightning you are not able to do URL hacking. In order to do any prepopulation of fields, it is suggested to use a quick action. If we have a related list object and we are trying to prepopulate ...
0
votes
1answer
707 views

Navigate to Visualforce from Flow in lightning experience

I've got an issue while using the Flow embedded into a VF Page. I would like to redirect the finishLocation of the Flow to another VF Page, without loosing the Lightning Experience contest, Anynone ...
5
votes
3answers
2k views

Navigating to a lightning app--what's the URL?

How would one navigate between lightning apps using the Salesforce1 javascript functions? I see actions for navigateToURL and navigateToSobject, etc, but not NavigateToLightningApp?
0
votes
1answer
753 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
1answer
26 views

Load scripts in lightning web component with out strict mode

I'm trying to load a library into a lightning web component. The library itself has comments in it that say it shouldn't run in strict mode which I think is what's causing my issue since I can get the ...
0
votes
1answer
35 views

How to increase the list size on button click on lightning component?

Below is my code .please do let me know how to increase the size of the list on my component on button click? Right now it is replacing the previous value . I want to add the new value to the existing ...
1
vote
2answers
2k 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(...
1
vote
1answer
870 views

“force:navigateToURL” inserts “?source=aloha” in the URL which breaks page

My Lightning Component app uses navigateToURL to allow lightning users (in a browser) to edit data in custom objects: navigateToEdit : function(cmp, event, helper) { var articleId = cmp.get("v....
1
vote
1answer
3k views

How to Preview a Lightning App in Visual Studio code?

Hi so i'm new to salesforce developement and recently i switched from the developer console to the Visual studio code to develop components there , but the thing is i don't know how to actually ...
0
votes
1answer
430 views

recordId is empty when overriding edit button in lwc?

I needed a custom popup for creating and editing a record. To achieve this I have created a LWC which will create and edit the record. I had wrapped this component with an aura component. and ...
4
votes
1answer
2k views

Navigate from Lightning Component in Record Page to Lightning App

I have an issue that I can't seem to see how you navigate from a Lightning Record Page to a Lightning app without a new pop-up opening. I have a Lightning Component with just a ui:button that ...
2
votes
1answer
1k 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: &...
1
vote
1answer
645 views

Custom lightning component's text area content not available during initial page load in controller's javascript

I created a custom lightning component that has a text area(plain HTML and not lightning/UI component for a reason. Refer to comments sections if you need to know why) and a submit button. Ignoring ...
1
vote
1answer
2k views

Creating a button or link dynamically with controller event

I have a link in the component like so: <a onclick="{!c.accountSelected}" data-accId="{!account.Id}">{!account.Name}</a> I am trying to also do the same by building an anchor tag that ...
0
votes
1answer
476 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 ...
5
votes
1answer
1k views

force:recordEdit UI not working properly

I am playing with force:recordEdit and it's looks like there is some issue in UI. Here i have attached the code and UI screenshot. In this example i have used hard coded id of contact record for ...
2
votes
3answers
983 views

Manually change defualt subtab on Lightning App page

I have a Lightning page in which the default tab has been set to "Product Selector". Is there a way by which I can manually switch the default tab to the 'Detail' tab via a lightning event? ...
0
votes
1answer
21 views

Salesforce Custom Navigation

Currently we have to create our apps with set of Tabs but I would like to have total control over where these tabs should display e.g; on right side of application. Add sub Tabs under main tab etc etc....
1
vote
1answer
2k views

Loading VisualForce page in an iframe inside a Lightning Component under a Salesforce1 app

I have a Lightning Component which I'm trying to add to a Lightning App to be run under Salesforce1. The Lightning Component has an iframe which loads a VisualForce page. <aura:component ...
0
votes
1answer
47 views

How to show my custom lightning web component on any standard object detail page in Salesforce mobile app?

I want to show my custom lightning web component in Salesforce mobile app. I have edit the lead detail page and activate it as for desktop and mobile both but that component show only in desktop not ...
0
votes
3answers
3k views

upload images with lightning:inputRichText

I'm not sure if I am just completely missing something or no one asks this question but I can't find a solution to this. I have a requirement to be able to upload images into the body of a rich text ...
2
votes
1answer
4k views

FileReader onload not working in lightning component

I have a requirement to upload the file in lightning component and sending it to third party without saving it in salesforce, so I am using below code for it ( tried as well, but did not work) <...
1
vote
1answer
475 views

How to make input form Readonly based on User profile in Lightning Component?

I have an Action button in our lightning Page, upon clicking it shows a form to input couple of fields and save it. But I have to make those input fields readonly for Profile 1 and editable for ...
0
votes
1answer
43 views

Hide an LWC component based on custom property. (Set component visibility based on custom field in component)

I have an LWC component on the Lightning App Builder. I saw that we can use "Set Component Visibility" feature to hide the component but it only works for standard Record/User/Permissions ...
2
votes
1answer
491 views

Problem while using <force:canvasApp> with VF Page via lightning component

I have added lightning app into visualforce page i am getting error like "Something has gone wrong. Cannot read property 'length' of null. Please try again." could some one help me on this. I have ...
0
votes
0answers
27 views

Invalid 'X-Frame-Options' when using lightning:container inside visualforce page

I use lightning container to load my React app then use visualforce to display in an app but it does not work properly. It's really weird that when I right click, and click "Reload frame" ...
0
votes
1answer
49 views

Manage LMS channel (view/create/update/delete) from within the Salesforce setup menu

Is there any way to view created LMS channels from within the SF org, other than querying them from the setup menu? How do I delete the channel if I want to from the org ? I was able to to create a ...
0
votes
1answer
49 views

Refused to frame 'lightning.com/' because an ancestor violates the following Content Security Policy directive: “frame-ancestors visualforce.com”

I update the code to below and I can preview the page. But when I add the page to Lightning app builder, it cannot load. And got the error Refused to frame 'https://mirage-video-dev-ed--ltng.container....
0
votes
1answer
19 views

How to create app from lightning resources?

I already manage to create an app running at https://mydomain.lightning.force.com/c/myFirstApp.app in developer console. <aura:application access="global"> <lightning:container ...
0
votes
1answer
553 views

Lightning Component not saving new data to sObject Data

I have a simple component that fetches a record and attempts to update it. I am trying to update the "part count" and it shows that it's being updated client side and that the params are being sent ...
0
votes
2answers
598 views

How to reload custom lightning component in a lightning page tab every time I click on the tab?

I have one lightning component named "Add/Edit Invoice Line Item" (as seen on screenshot) I want to reload this component every time a user clicks on this tab. Is there any way or event which can be ...
7
votes
1answer
469 views

lightning:overlayLibrary Modal not closing in LEX Tab

I've been using lightning:overlayLibrary Modal in a component which is referred in a Lightning Page and in a Lightning Tab. I'm using a custom button to close the modal which performs a overlayPromise....
1
vote
2answers
24 views

Is there a single page where I can view Lightning Home Assignments?

Is there a single page where I can view Lightning Home Assignments? I am looking for something like how you can see page layout assignment by profile and record type for an object, but I want it for ...

1
2 3 4 5
18