-
Error in Salesforce Ligthning component
Hi all,
trying to build a lightning component but flashing this error
This page has an error. You might just need to refresh it.
Assertion Failed!: Unknown controller action 'clickCreateCampingList' : undefined
Failing descriptor: {ui$button$controller$press}CONTROLLER
({
clickCreateCampingList: function(component, event, helper) {// Simplistic error checking
var validCampinglist = true;// Name must not be blank
var nameField = component.find("expname");
var expname = nameField.get("v.value");
if ($A.util.isEmpty(expname)){
validExpense = false;
nameField.set("v.errors", [{message:" name can't be blank."}]);
}
else {
nameField.set("v.errors", null);
}// ... hint: more error checking here ...
// If we pass error checking, do some real work
if(validCampinglist){
// Create the new camping list
var newitem = component.get("v.newitem");
console.log("Create campingList: " + JSON.stringify(newitem));
helper.createCampinglist(component, newitem);
}
}
})
Log In to reply.
Popular Salesforce Blogs

TRIGGERS AND ORDER OF EXECUTION.
This topic came up again today in reference to a trigger to modify lead assignments. It's always important to keep the order of these events…

See the differences between С# and Apex with a handy cheat sheet!
Are you starting to code with Apex, Visualforce, or Lightning? If you trail from .Net to Salesforce development, it would be good to start from…
Popular Salesforce Videos
Salesforce App Builder Training | Salesforce App Builder Tutorial | Intellipaat
In this salesforce app builder tutorial, you will learn what is Salesforce CRM, a Sales rep in Salesforce, various user settings in Salesforce, and how…
Quick Text in Salesforce | Service Cloud | Salesforce Tutorial
In this video, we will talk about what is Quick text and how to implement those Quick texts inside Salesforce. Watch the video and let…
How Do All Salesforce Products Come Together
The products of Salesforce run completely in the cloud. Therefore, the companies don’t need to fret about costly maintenance and setup charges. Additionally, cloud technology…