Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.
2
votes
3
answers
711
views
Display Lightning Details record data
I currently have a Lightning app that displays a list of custom Master object records. They are displayed like so
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" con …
5
votes
Lightning: Datatable not displaying decimal values
For your decimal column, use
var columns = [
{ label: 'Decimal Column', fieldName: 'theFieldName', type: 'number',
typeAttributes: { maximumFractionDigits: '2' }
}
];
Check out the d …
1
vote
2
answers
15k
views
<aura:iteration> with <aura:if>
I'm creating a to do list lightning app.
I iterate over a list of items in my database. Each item has a checkbox field, called completed__c. I use an attribute in my lightning component to change if …
2
votes
1
answer
487
views
Unable to use built in events (Event Reference)
Salesforce has functions that do a lot of basic web app functionality for you, called Event Reference. They can be found here https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning …
1
vote
1
answer
663
views
How to display a lookup relationship field on insert/update, Lightning
I have two methods in my Apex controller that create/update a record
// Creating a new item
@AuraEnabled
public static Item__c newItemDB(Item__c item) {
insert item;
return item;
…
1
vote
0
answers
755
views
onclick event not working for th tag
I'm able to successfully do onclick events in my component, except when I try it on <th>. Why doesn't it work? I'm trying to do an onclick event on the <th> to do sorting of the table data.
Component …
0
votes
2
answers
916
views
Update related record fields lightning data service
I have a record loaded with Lightning Data Service. I try to set related record values like so
var prescription = component.get("v.prescription"); //lightning data service record
console.log(prescrip …
3
votes
1
answer
1k
views
Display records based on multiple conditions
I have a list of records that I iterate over.
<aura:iteration items="{!v.items}" var=item">
<aura:if isTrue="{!item.field__c == v.completed}">
<c:item item="{!item}"/>
</aura:if>
< …
4
votes
2
answers
1k
views
Only fire function when user is done typing
There is this post that talks about how to fire a function once the user is done typing. How can this be implemented in an aura component? This is what I have so far, but it doesn't work.
<aura:compo …
1
vote
Only fire function when user is done typing
This worked for me. I don't even need the onKeyDownHandler anymore.
onKeyUpHandler:function(component, event, helper) {
var timer = component.get('v.timer');
clearTimeout(timer);
var tim …
0
votes
2
answers
7k
views
return clean error message from server side function
On my lightning component I have function that calls to server side function to create a case
Controller.apxc
public class CommunityCaseFormController {
@AuraEnabled
public static Id createCa …
1
vote
0
answers
649
views
lightning:recordEditForm support for guest users
Is the lightning:recordEditForm component considered part of the lightning data service? I'm aware that lightning data service is only available in lightning experience. I don't see anything in the do …
1
vote
2
answers
3k
views
help text icon with lightning:select
The docs are very clear on how to add a help text icon. I've tried to do this using lightning:select component. This is what I have so far but it doesn't appear to be working:
<lightning:buttonIcon i …
0
votes
1
answer
2k
views
Assigning form field values to JavaScript object
I'm creating a form for a community using a lightning component. I'm trying to give the case object it's field values before I send it to the apex controller. This isn't working for me.
form.cmp
<au …
2
votes
2
answers
1k
views
Display Salesforce File in lightning component
I see from this question that you can display an image in a lightning component. Will this work for a pdf file? Using the exact same code, it doesn't appear so.
I did try using lightning:fileCard to …