-
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
Navigation Service in LWC | All You Need to Know
The lightning/navigation service is used to navigate in Lightning Experience, Lightning Communities, and Salesforce Applications. Lightning Navigation Services Web Components are used to navigate to…
Maximizing Efficiency: Exploring Related Lists with PWR Components
Introduction Salesforce, renowned for its CRM capabilities, faces limitations in managing intricate business scenarios, particularly in e-commerce. Traditional Salesforce-related lists struggle with dynamic data and…
How To Pass Salesforce AppExchange Security Review
Touted as the world’s #1 business app marketplace, the AppExchange is backed by Salesforce’s watertight protection. Today, AppExchange boasts over 7.5 million downloads, 5,000 solutions,…
Popular Salesforce Videos
How to Find the Job ID for a Test Send and Send Flow | Salesforce
This video will help you understand how to find the job id for a Send Flow and for a Test Send. 00:00 - Introduction 00:30…
Salesforce Careers: Drive Success Through the Lens of the Customer
Salesforce employs over half of the Technical Architects across the globe and is shaping the future! Visit careers at Salesforce to apply for the Professional…
Explore Record Triggered Flow | Learn Salesforce Lightning Flows | Flow Builder Videos
Creating or updating a record can trigger an auto-launched flow to make additional updates to that record before it's saved to the database. A record-triggered…