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.

Filter by
Sorted by
Tagged with
0
votes
3answers
6k views

CSS in lightning component

I have below code <aura:component implements="force:appHostable" controller="controller" access="global" > <aura:attribute name="allLoaded" type="Boolean" default="true"/> <aura:...
0
votes
1answer
5k views

[component.find(…).get is not a function]

Hi in func2 i am not getting the value of input text. I'm doing this way because firstly i am pre-populating value, and i can clear the text value so that in SelectedRecordProj should be null. Cmp &...
4
votes
1answer
240 views

Summer 17 LockerService Error while using Node.contains

When I try to execute the following code: this.root.contains(this.element) where root is a "SecureElement: [object HTMLDivElement]{ key: {"namespace":"xyz"} }" and element is a "SecureElement: [...
1
vote
1answer
2k views

No function found for key: IF: Source Lightning

I'm trying to conditionally display the title of page based on a Boolean variable. <aura:attribute name="isAvailable" type="Boolean" default="False" description="Boolean to display header." /> ...
1
vote
1answer
894 views

Change parent tag class

I have lightning component with below code. I trying change class on aura:id="xcont" when i click a checkbox. background-silver to background-red <div aura:id="xcont" class="slds-button slds-...
2
votes
1answer
2k views

Strange behavior on creating a component dynamically

I'm trying to create and include in my parent component a subcomponent through the method $A.createComponent() but it throws a strange exception. This is a piece of the code of my parent component: &...
0
votes
1answer
1k views

Checkbox as button

I trying use SLDS Lightning design system at a checkbox. My checkboxes should look like as button and when I click on it I try change background color. For example: https://www.lightningdesignsystem....
2
votes
4answers
13k views

Automatically refresh lightning component

Is it possible to refresh a lightning component if any action is performed at the back-end. i.e I am currently displaying lightning component with list of cases, as soon as new case has been created ...
0
votes
1answer
363 views

lightning Design system with javascript framework for togglecheckbox

I am new to LDS and trying to develop a component with Lightning design systems toggle checkbox and my goal is to hide and show certain input label when toggle is enabled and disabled , my questions ...
0
votes
3answers
2k 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 ...
13
votes
5answers
8k views

Lightning QuickAction (API) without modal

I am attempting to replace JS buttons with quick actions. These button simply call a web service method and alert the result and need no user interaction. With quick action a modal always seems to ...
0
votes
1answer
7k views

How to get specific value from map in Lightning component?

I have used map as attribute type in Lightning component. In markup how can i print the value from this map? I need syntax only. I am creating map from js controller of component.
0
votes
2answers
1k views

Error message from server side controller lightning

Hi i want the error message to be displayed, i am getting value in response.getError() function, i want message argument in this function. Below is the snippet of how i'm doing, i am getting undefined ...
0
votes
1answer
2k views

Remove element from Lightning component

Can I remove one of elements from lightning component with help js controller? For example from below code I try delete element aura:id="out2". <aura:component> <div class="slds-...
0
votes
2answers
9k views

How to use svg tag in Lightning [closed]

Can anyone tell me how can i use <svg> and <use> tag in Lightning.I tried by creating Lightning SVG as mentioned in this link,but still not getting it.
7
votes
2answers
4k views

extending lightning components

I would like to find out which cases are appropriate for using inheritance in lightning components, particularly how can we use polymorphism by extending lightning componets or maybe implementing ...
1
vote
1answer
2k views

Lightning Components Basics - Connect to Salesforce with Server-Side Controllers- Queries

As part of these module, can you help me understanding the below logic in order to display the expense from APEX, below is the logic used ({ doinit : function(component, event, helper) { ...
0
votes
2answers
284 views

Lightning style CSS

This is the first time I build a frontend application, I prefer coding the backend. I tried to do this in a Lightning Component. I added the below picture as a reference. Can I build that with ...
0
votes
0answers
35 views

Document non-global lightning components

Adding a .auradoc on a global Lightning component adds documentation to the /auradocs/reference.app page. Fine. Nice. Is there a way to generate documentation for my team internally for the non-...
0
votes
2answers
1k views

How to get and display inform from Apex with Javascript Controller?

I built an application with Lightning Experience. In my custom apex controller, I have a method named getParam. public class compController { @AuraEnabled public static List<ObjectParent> ...
2
votes
0answers
149 views

help tool tips are not showing in VF Pages in Lightning Experience but showing in Classic

I have a VfPage, we have help tool tips to some fields, these tool tips are showing in Classic view, when i switched to lightning by changing the URL to /one.one/app i am able to see all the tool tips ...
0
votes
2answers
1k views

Record Type ID: this ID value isn't valid for the user - not working in lightning but working in classic

When we try to initiate new record creation action in lightning related list new button, this related list object have multiple record types so first we are getting redirected to Record Type selection ...
3
votes
3answers
796 views

save data before session timeout

I have a lightning app, which is embedded inside a visualforce page. It is a page that is a form. I have given a button "Save Draft" which allows users to save data. Problem is, some users fill out ...
3
votes
1answer
773 views

No way to see custom object Created Date in Lightning Setup?

I'm used to SF Classic, where you can go to a custom objects page and see the Created By field which provides the person and date. There is also the Last Modified field which provides a person and ...
1
vote
0answers
369 views

How to know which hyperlink is clicked Lightning

I have a lightning componenet "commonLightningComponent" with apex class "commonClass" associated with it. I have two hyperlinks on a new lightning component "baseComponent". below is my component ...
2
votes
1answer
837 views

Salesforce Lightning: Dynamically Create Tabset/Tab

I'm currently having an issue when trying to tabset with dynamic tabs. It appears that I need to use "aura:set" to set the label for each tab. When I do that though, I receive the oh so incredibly ...
0
votes
1answer
232 views

Salesforce Lightning OpenCTI API does not work

We are writing an app where we using OpenCTI JS. All our code works fine when we use the regular salesforce dev instance. But the OpenCTI methods do not work when we test on a custom domain or sandbox....
2
votes
1answer
126 views

Questions related to LockerService SecureObject functionality and behaviour in Aura/Lightning

Lately I've found myself pretty deep in the weeds with a lightning application and have a series of questions I'm hoping someone here with some inside knowledge might be able to assist with. Or at ...
0
votes
1answer
227 views

Lead Conversion via Apex Trigger Has Different Results in Salesforce Classic vs Lightning Experience

I have a trigger that converts Leads to Opportunities. The trigger fires after update on the Lead object when the Lead Status changes to "Contacted/Qualified" (the "Converted" value). This update to ...
1
vote
1answer
2k views

Adding CSS class to a Lightning subcomponent

Today, I'm faced with this problem: I have a button in a parent component that should open a modal dialog in a subcomponent, but when I add a class to show my modal dialog it doesn't work. Here is the ...
5
votes
1answer
2k views

How to get list of all Lightning Components present in my org?

I am not able to get the id and names of all the lightning components of my org. Is it possible to get them in a list either by querying or any other piece of code
1
vote
2answers
365 views

Spinner display getting delayed based on number of records being displayed on the current component

I have 2 lightning components. I am displaying list of parent on the first component. when I click on the any specific parent I am displaying all associated child for that parent in the 2nd component. ...
2
votes
0answers
744 views

URL.createObjectURL not working in lightning

This might relate to LockerService(Link). I try to use URL.createObjectURL on a vf page. Works fine in classic but in lightning it will give me "This page isn't available in Salesforce Lightning ...
3
votes
0answers
2k views

download the salesforce lightning component content into a pdf

I have an issue in salesforce lightning that how can I convert the following Salesforce lightning component into PDF. We have working on something that we are able to convert the HTML page into PDF ...
1
vote
0answers
203 views

Salesforce Integrations BETA compared to Mulesoft (or other) service bus

I see in Spring '17 there is a new area in the LEX Setup menu called Integrations (BETA). I'm reviewing the documentation but I don't know much about microservices nor how they relate to SFDC. Is ...
1
vote
2answers
618 views

Lightning: running an apex method on a button that returns string, returns [object Object]

Been crash course learning Lightning. Just trying to get a simple apex button to work and having some issues: my component <aura:component controller="testjzapex"> <!--<aura:...
0
votes
1answer
1k views

“Received exception event aura:systemError from server” while uploading 1mb file in Lightning Component

Im trying to upload a 1mb File in salesforce lightning component referring this documentation by Peter(http://peterknolle.com/file-upload-lightning-component/) I am able to upload 500KB files using ...
9
votes
1answer
5k views

How to pass Date from Lightning to Apex

In Lightning component I have attribute and input for date: <aura:attribute name="myDate" type="Date"/> <!-- ... --> <ui:inputDate aura:id="my-date" labelClass="slds-form-...
1
vote
0answers
26 views

Salesfoce client side updated content (d3 chart) not showing on subsequent loads [duplicate]

I am trying to create a d3 Chart from third party JavaScript file, calling the JavaScript function from Salesforce lightning component on afterScriptsLoaded event. <ltng:require scripts='/resource/...
4
votes
1answer
2k views

retURL alternative in Lightning

Experiencing problems after switching to Lightning Experience - some vf actions after completion lead user to the home page. We use saveURL and retURL a lot, which are not supported in Lghtnng. Is ...
3
votes
1answer
142 views

Lightning Compiler - what happens when we save a lightning bundle

Does the lightning bundle elements (html/xml, css, js) gets stored in salesforce servers in their individual native formats and served back to clients in the same format per request ? OR is there ...
4
votes
0answers
573 views

Passing a blob to lightning controller from controller? [closed]

Is there a way to pass the contents of a large file(in this case a CSV file with upwards of 20,000 rows) to a lightning controller without running it through JSON.stringify, and ideally keeping it as ...
0
votes
0answers
991 views

ui:input select setting options issue in lightning

Uncaught Action failed: ui:inputSelect$controller$optionsChange [Cannot read property 'Aa' of null] .... hi there cant figure out cause for above error i'm using ui:inputselect with multi select, ...
2
votes
2answers
4k views

Perform actions on a table in a Lightning Component

I can't find a solution to resolve this problem. I have this table: <table> <aura:iteration items="{!v.fixedDocs}" var="docs" indexVar="index"> <tr> ...
2
votes
1answer
2k views

$A.createComponent doesn't include aura:id [duplicate]

Going straight to the point, i have spent quite some time yesterday figuring out createComponent and now it finally works, but the main reason i wish to use $A.createComponent instead of a iteration ...
2
votes
1answer
695 views

how to open corresponding component Based on Button click

Component: <aura:component implements="force:appHostable,force:lightningQuickAction,flexipage:availableForRecordHome,flexipage:availableForAllPageTypes,force:hasRecordId" access="global"> &...
1
vote
1answer
1k 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 ...
2
votes
1answer
133 views

How do i empty the value in lightning without violating DOM Modification

Component <input onchange="{! c.readCSV}" accept=".csv" type="file" id="file-upload" aura:id="file-upload"/> Controller readCSV : function(component, event, helper){ var file = component....
0
votes
1answer
576 views

Calling e.force:createRecord from within a visualforce tab in Lightning

Usecase: We have installed a managed package which gives us the ability to redirect to a new page on a button press. In this case, the managed package searches for a list of companies in a register, ...
3
votes
1answer
10k views

Use existing Lightning component in $A.createComponent

I wish to make dynamic aura:id's and for that i want to use $A.createComponent, now i already have a component called 'pageComponentCard' that i wish to call but i can't do this. The code in ...

1 84 85 86 87 88 108