-
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
The Secret of Successful Companies: Meet and Keep Your Customers With Salesforce CRM
Various researches have shown that a satisfied customer is the best advertisement. They remain loyal both to the brand and the product and rarely think…
What are Apex Basics? A Guide in 2023
The primary languages required to know in salesforce are: - Apex – It is used to write the business logic or we can say it…
Get your development faster with Apex Code Assistance, Lightning Previewer and PMD Support for Apex in a new release of The Welkin Suite IDE
The Welkin Suite team just finished up its large push to hand out its latest Release for Windows, “Bloom R1”, as they continue toward their…
Popular Salesforce Videos
TrailheaDX '18 Opening Keynote - Part 3: Connect Every Experience
Salesforce TrailheaDX ’18 Opening Keynote – Part 1: Create Connected Customer Experiences TrailheaDX ’18 Opening Keynote – Part 2: Salesforce Platform Salesforce TrailheaDX ’18 Opening…
A Closer Look at Revenue Cloud | Salesforce
Watch this demo to learn how Revenue Cloud can help you take control of revenue growth across every channel including direct sales, partners, and digital…
Custom Button URL Hacking in Salesforce Lightning Experience vs Salesforce Classic
Custom Button URL Hacking in Salesforce Lightning Experience vs Salesforce Classic Custom button URL Hacking approach in Salesforce Classic Custom button URL Hacking approach in…