-
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
Marketing Cloud Account Engagement (Pardot) Use Cases
Use Case 1: Engagement Program in Pardot Problem Statement The client had a process of booking training courses, which implied the interaction between Pardot and…
Salesforce Tail logs in Browser (No CLI Installs)
Are you still watching tail logs in terminal or CLI windows? We are delighted to announce that we have released a brand-new version of our…
Salesforce Service Cloud Enables Companies Build Customer Service Center in Just a Day
The ever-increasing emphasis on customer service has got businesses immersed in a constant race towards perfection. The harsh truth is: enterprises are judged on the…
Popular Salesforce Videos
Boosting your Application's Marketing through Salesforce AppExchange
Explore the key benefits of AppExchange, the largest business app marketplace, and discover how you can tap into its vast ecosystem of potential customers. In…
Live Demo of Salesforce Industries
Watch the live demo to have a better understanding of Vlocity i.e Salesforce Industries. Let's have a glance at this extract from our latest webinar!…
Salesforce Integration Tutorial | Integrate Salesforce with Apps | Salesforce Training
This Salesforce Integration Tutorial video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…