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]

This tag is for questions related to the "Lightning Experience" which comprises a number of elements around a new User Interface on the Salesforce Platform. While it can still be used in a server side MVC environment, it is primarily a MV UI where the Controller is JavaScript based operating from the user's browser. Lightning "Pages" are single page applications.

22
votes
2answers
5k views

How to navigate in lightning out?

Actually I am using lightning components with a visualforce page, because this is the only way to override standard button (using VF) today. The problem is that, i need to redirect my user to the new ...
5
votes
1answer
552 views

How can I get “Lightning Accredited” badge for my company on Appexchange?

I want this badge for my company. (I am talking about blue color badge "LIGHTNING ACCREDITED".)
2
votes
1answer
325 views

How to rerender a list inside a custom object in lightning component

I got the question idea from @SimonPlacentino 's original post: ui:inputCheckbox and aura:iteration: value binding . But that question doesn't get enough attention. It might be caused by it is not ...
2
votes
2answers
6k views

Modify the tabs in Lightning Experience

I would like to modify the disposition of some of the tabs in Lightning Experience in the Sales App. Here is what i would like to achieve.
6
votes
1answer
4k views

Dynamically Building Nested HTML in Lightning Component

I'm currently trying to dynamically build nested HTML components using $A.createComponents, but it doesn't seem to be working (I'm receiving an error message: An internal server error has occured). ...
2
votes
0answers
606 views

LIghtning Component Window size update

I have an issue with the lightning window size. I have 2 sections in my lightning component and at a time only one of them is visible. When the app first loads, only the first section is visible and ...
10
votes
1answer
2k views

Lightning Components: handle event from one particular component

I'm working on a lightning application for managing work items & tasks. Currently, I'm having trouble with just updating just one instance of a workItem component I have. The way I have things now,...
10
votes
1answer
653 views

How to make script loading in Lightning component really One-Time? [possible bug]

We have a component that is constructed of many smaller components. Few of these components require jQuery and jQuery-ui. In following screenshot you can see that jQuery library is loaded 3 times ...
3
votes
1answer
2k views

How to get content of Attached file lightning

I need to display content of attachment within iframe that is embedded in the particular sObject. When you upload file from notes&Attachments related list on salesforce classic its type is ...
2
votes
1answer
2k views

How to get the page URL from a Visualforce page in Lightning?

In Salesforce Lightning, all pages are opened as iframes, so the issue of inability to access the parent page URL arises, but I would like to know if there are any work-arounds. My requirement is to ...
3
votes
1answer
1k views

Action remains in queue in lightning component when launched from timeout function

I am actually using lightning components with VF, to allow my user to search for a particular account. According to the client spec, the user will only type their letters and the search result should ...
3
votes
2answers
267 views

Aura:storage crashing when used in a ltng:outApp

I'm trying to use aura storage in an app included from a VF page, but I have the following error. Same code works well for a standalone .app Uncaught TypeError: $A.$clientService$.$initHost$ is not a ...
1
vote
1answer
548 views

Formula field in related list displayed in Classic but not in Lightning

As we were validating data that we just loaded, we encountered a strange issue on a specific user: A formula field contained in a related list is not calculated in Lightning whereas the user can ...
4
votes
2answers
423 views

What is the suggested approach when need to load multiple data in initialization for lightning component

In lightning or VF page, there is usually more than one set of data need to be initialized. Say if we have two list of SObjects of different type need to get queried/initialized from database, what ...
5
votes
1answer
469 views

Getting unexpected token: a left angle bracket error in lightning

I am using <aura:iteration> to generate a datatable. But I am continuously getting the error: aura/Select_List_For_Message/Select_List_For_Message.cmp -- Error: unexpected token: a left ...
1
vote
3answers
5k views

Read value attribute in lightning button in the client js controller

I create a bunch of buttons in a table with aura:iteration. Think of it as one per contact per row to act on the record. Here is the button markup inside a td - <lightning:button variant="brand" ...
6
votes
2answers
399 views

How to manually abort an action

I was thinking that my question is simple but I can't find any answer on the internet at the moment. In some case I need to create an action but if the user make a change before the response, I want ...
7
votes
3answers
15k views

Lightning : Icon color is not changing using the fill CSS

According to the documentation (https://www.lightningdesignsystem.com/components/icons/ ) we can change the icon color by suing the CSS. I am not able to do it. It always overrides with the Salesforce ...
5
votes
2answers
8k views

Lightning/Aura Components: component.find().getElement never accessible

What are the actions that might destructively interfere with the lightning app's lifecycle? Is a breakpoint\debugger statement one of such? For example there is a case that I happen to meet regularly ...
37
votes
2answers
12k views

What is suggested approach to transfer VF pages to be lightning ready

So I am planning to transfer our current VF pages to lightning ready. Most of our VF pages are based on a standard controller or standard set controller and use an extension. And they are pretty much ...
4
votes
1answer
5k views

Run a mass action on multiple records in a list view

According to the new release (Winter '17) is available run mass action on multiples records, but anyone how do it? All my list button aren't available in lightning experience
1
vote
0answers
1k views

component.get(“v.attribute”) not getting

'I have a list of items, where each item has its own component. In that component, there is an attribute set to the item itself. When I click a button, an event fires and that event should be given ...
4
votes
3answers
953 views

BUG? - Suddenly Cannot save (existing) lightning Components or add components to Lightning Page Builder

Two odd issues: Last night, I was unable to add a newly created Lightning Component via the Lightning Page Builder. I also re-saved an existing component and it disappeared from the list of available ...
1
vote
1answer
2k views

Customised confirmation dialog in a Lightning component

Hi I want to show a confirm dialog as shown can the do the same using Lightning CSS. I know we can use onclick="return confirm('test');" but look and feel of the same is different. How should I ...
0
votes
1answer
76 views

Click event not responding

I'm working out of this github project and I'm stuck here, when I click on the Schedule tab it does not do anything, what do I need to do to show the schedule component? as shown below in the print ...
3
votes
1answer
4k views

Edit Mini Page Layout In Lightning

How do you edit the fields displayed on the mini page layout within Lightning? I've set it in Classic and it displays correctly, but in Lightning, when I hover, the popup only shows the record name.
1
vote
0answers
172 views

Tab style missing when viewing visualforce page in lightning experience

When creating a visualforce tab you are given the option to set a tab style which consists of an icon and a colour. This sets the icon and the background colour for components on the visualforce when ...
0
votes
2answers
621 views

HTML Email Template from Lead Email Activity Tab in Lightning

In Salesforce classic, you can choose your HTML email templates from the "Send Email" in the Activity related list. In Lightning, can you pick an HTML email template created in Lightning from ...
2
votes
0answers
682 views

How do I export a Community Template from the Lightning Community Builder?

In the Salesforce Winter '17 "Using Templates to Build Communities" Docs (http://resources.docs.salesforce.com/204/11/en-us/sfdc/pdf/community_templates.pdf) the steps for exporting a Community ...
4
votes
2answers
635 views

In lightning component, are only html items responsive at all?

I have just gone through the trailhead and documents about lightning component. One interesting part is that it seems to me that only lightning component specified tags - like <ui:button>, <...
2
votes
2answers
439 views

TinyMCE not working when locker service is enabled

Hi guys when enabling locker service I get this error, I am using the tinyMCE plugin? auraError": -{ "name": "TypeError", "message": "Uncaught Action failed: c$EmailEditor$controller$...
3
votes
1answer
243 views

Winter 17 SFDC Classic / Visualforce / Lightning out / Destroying objects

I'm having issues with a very simple use case. namely display a lightning component upon a button click via refreshing an output panel, then hiding the component via rendered=false on the same output ...
3
votes
1answer
673 views

Is there performance degradation when using Lightning components within an aura:iteration tag?

I am currently building a somewhat complex Lightning App page. I have currently encountered a requirement to optimize the page due to slowness in the page loading and filtering records using client-...
2
votes
1answer
387 views

Gack when using aura:iteration and indexVar?

I have two nearly identical lists that will bind to separate values, so I was trying to use some sort of list that would allow me to avoid creating a component. Here's the code that I've tried: <...
3
votes
3answers
2k views

What is the entry criteria for lightning-ready app

I searched through the internet and was surprised that I didn't see much related information. As Eric mentioned in my other post: Any good reason for using lightning component . Every app should be ...
1
vote
1answer
1k views

Error:: Access Check Failed! Agttributeset.get(): attribute 'record' of [closed]

How do i fix access Check issue? as per the documentation i have to perform isAccessable() check as well as component should have global access which i did. still doesn't work. Can you guys help me ...
6
votes
3answers
1k views

Did Salesforce recently update their aura library? Facing weird issues with access control and string concatenation

I am wondering whether Salesforce recently updated their lightning library outside of a release window - is there any way to verify the currently loaded version of aura/lightning? Was led to asking ...
2
votes
0answers
325 views

Redirect to a custom Lightning tab via JS

Any one know how to "cleanly" redirect to a custom Lightning tab via JS? I was able to use e.force.naviageToURL to navigate to the tab. But the tab's url currently looks something like this: https:...
5
votes
3answers
4k views

Remove Footer from Lightning Action Visualforce

I added a new custom action with a visualforce page as the content. But it still has the cancel and save buttons at the bottom of the action. I'm trying to remove these as they do not make sense in my ...
2
votes
1answer
194 views

Passing complex structured data type from Lightning to Apex Controller causes Internal Error with Gack Id 263119078

Passing complex structured data type from Lightning to Apex Controller causes Internal Error with Gack Id 263119078 var action = component.get( "c.saveModel" ); action.setParam( "model", ...
5
votes
1answer
3k views

Handler change not working with attribute updated inside aura:iteration

change handler doesn't work when the attribute is a list which can be updated an aura:iteration. In the following example, we never go to controller method itemsChange ( except at the init) whereas ...
1
vote
2answers
501 views

Links to Visualforce Pages in Lightning UI

How can we give a link to a VF page so that it loads in same window? The usage required is to share the VF page URL in a salesforce record. For Ex, there is a link to a VF page in Task Record. We ...
1
vote
2answers
543 views

Lightning: Passing Date in format [YYYY-M-D] gives error “Unable to read SObject's field value[s]”

Passing Date in format [YYYY-M-D] like "2016-1-1" gives error "Unable to read SObject's field value[s]" Steps to reproduce: Create custom object Custom_Object__c with Date field Date__c Create Apex ...
2
votes
2answers
581 views

Visual Force Button Problem in Lightning. On Click of Button In Vf new Vf Page is opened. But in Lightning That Page goes out of Lightning Experience

I have a VisualForce Page In which i have a button. <apex:commandButton value="Click Me" onclick="redirectTo('/apex/NewPage','');return false;" /> But in Lightning Experience I want that Page ...
0
votes
1answer
100 views

Is there a way to forbid access user for a lightning app or component?

For Visualforce Pages we could select security for which profile the page is available but looks like it is not possible to have the same functionality in Lightning for Lightning Apps. If we try to ...
1
vote
4answers
2k views

Lightning component access denied

I have an action of type Lightning Component in which I use a component for handling lookup input field (here's link for this component: https://github.com/enreeco/inputlookup). When I open my action ...
3
votes
1answer
646 views

Lightning Components don't load for Salesforce Platform user license?

I have a Lightning Component embeded in Visualforce page with LightningOut way. For users with Salesforce Platform license the page doesn't load at all, instead I get following error in JS console: ...
1
vote
1answer
154 views

Opening Lightning Application with not enough security access level raises internal error with Gack Id -227057212

Opening Lightning Application which refers to SObject for which current running user doesn't have permission raises internal server error with Gack Id -227057212 Steps to reproduce: Create custom ...
3
votes
1answer
1k views

Two lines of code raises internal server error with Gack Id 472275017

<aura:application > <aura:attribute name="cont" type="Contact"/> <force:inputField value="{!v.cont.Account}"/> </aura:application> Steps to reproduce: Create the ...
9
votes
1answer
493 views

How does component.set works underneath the hood

When I read the lightning component code, it seems to me that although it is kind of two-way binding, it is not exactly the dirty-check mechanism as in Angular. Rather, it is using component.set() to ...