Skip to main content
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
Results tagged with
Search options not deleted user 16490

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.

1 vote

"Not a function" error in Lightning component during init

You need to capitalize the 'v' as @Peter said. The line in your helper should look like this: component.set("v.contactRows", a.getReturnValue());
Moshe Karmel's user avatar
2 votes
Accepted

Lightning Renderer External Script Dependency

There is a "afterScriptsLoaded" event that gets fired when all of your ltng:require stuff finishes loading. I suppose you can have some renderer code that runs afterSciptsLoaded. For example <ltng: …
Moshe Karmel's user avatar
1 vote

Best practice saving sObject[] in Lightning app

Saving an entire list, is probably the better way to do it. You can have a List of Opportunity Line Items, in which you store all of the Line Items that have been edited. Then pass this list to the sa …
Moshe Karmel's user avatar
4 votes
Accepted

Lookup Field in Lightning

Apparently there are no known cases of force:inputField working correctly. @Fab asked this question 9 months ago, and noone seems to have been able to get it working. I guess for now the best option i …
Moshe Karmel's user avatar
1 vote

How to use a normal Javascript function in Lightning Component?

You can add a "normal" Javascript Function to your helper file. For example if you are on a component named "foo". You can create a fooHelper.js file and add your code: toggleDiv : function(div){ …
Moshe Karmel's user avatar
2 votes
Accepted

Salesforce lightning Component

You may be running into issues with the differences between a Javascript List/Array and a Apex/Java List. The lightning error messages are extremely unhelpful, so you may want to try a different appro …
Moshe Karmel's user avatar
2 votes

Embedding lightning component in visual force page

For security purposes, Lightning components now require you to define a custom Salesforce domain name for your organization. If you’re using Lightning components today, you might need to take a …
Moshe Karmel's user avatar
0 votes

Lightning components and enabling my domain in winter '16. What is the reason?

I heard the following from @zachmcelrath of skuid: My guess is it has something to do with trying to protect the "Lightning Experience Setup menu" --- one of the Salesforce's Security team's b …
Moshe Karmel's user avatar
1 vote
1 answer
3k views

Salesforce Lightning upload csv file

Is there a way to pass a csv file to an Apex method in lightning? There doesn't seem to be a apex:inputFile type of component. I suppose that I can use a standard html input type="file", but how can I …
Moshe Karmel's user avatar
1 vote

Salesforce Lightning upload csv file

You can use a standard input type="file" and parse the file on the client side. Ideally I would've like to parse the file in Apex, but I ended up converting the CSV to JSON in Javascript. I then can e …
Moshe Karmel's user avatar
9 votes
Accepted

Examples for Lightning Timer Component

I don't believe that there is a built-in one, but I was able to create my own fairly simply. Here is the repo : https://github.com/moshekarmel1/Stopwatch. I am using a static resource that contains …
Moshe Karmel's user avatar
1 vote
1 answer
11k views

Lookup Field in Lightning

Is there a Lookup field renderer available in Lightning? Something like ui:LookupField. I am looking for something that will have the ability to search for a record. In Salesforce1, you get a popup wh …
Moshe Karmel's user avatar
19 votes
Accepted

How do I create/expose properties that will be passed to my component from the Lightning App...

You have to create a design file (yourComponent.design). In the file you should put tags like so: <design:component> <design:attribute name="sObj" label="sObject" description="The Object that con …
Moshe Karmel's user avatar
1 vote
Accepted

How to work with my Apex Classes and my Lightning component on my local environment?

Dave Carrol has a cool package for sublime called "sublime lightning" you can check it out here: https://github.com/dcarroll/sublime-lightning . I'm pretty sure you can sync Apex classes as well.
Moshe Karmel's user avatar
3 votes
Accepted

Returning a string as part of an Apex class in an AuraEnabled Method

You can try doing what Peter Knolle mentioned in the post you referenced, to just return a JSON string that contains the data in your class, instead of returning 'Classic'. Basically you would just ha …
Moshe Karmel's user avatar

15 30 50 per page