-
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
Get Started with Salesforce Scratch Org | The Developer Guide
Scratch Org Scratch org is a deployment of Salesforce code and information that is source-driven and disposable. Since scratch org is completely customizable, developers can…
How Salesforce CPQ Can Enhance the B2B Customer Experience?
A typical B2B buying experience is known to be complex and heavily layered. With a prolonged quoting process and the lack of personalization in billing…
Popular Salesforce Videos
What Are Top 5 Salesforce Career Entry Jobs?
Wondering what are Top 5 Salesforce career entry jobs? Join this useful group for Salesforce job & career info. https://tinyurl.com/TelegramIntelogik
Transition to Salesforce Lightning Experience
Transition to Salesforce Lightning Experience for Overall Navigation, Global Search, Home Page, Accounts, Leads and Opportunities. This video walks you through the recommended process, including…
Wow Your Customers with Salesforce Customer 360
Salesforce Customer 360 helps companies unite their teams to deliver amazing wow-worthy experiences beyond customer expectations.