-
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
Upcoming Market Trends in Salesforce CRM
“SALESFORCE has reached a long distance since late nineties. That was the time, when people use to consider it as a business tool for Salesforce…
Salesforce Experience Cloud Implementation Guide
Table of Contents Introduction Salesforce Experience Cloud Implementation Steps Planning and Preparation Setup and Configuration Content Management User Management and Security Integration and Automation…
Top 15 Reasons to Choose Salesforce Outsourcing Services
CRM is the heart of most of the business and Salesforce is the king of the market! When it comes to adding to the productivity…
Popular Salesforce Videos
How To Get Exam Voucher For Salesforce?
Wondering How To Get Exam Vouchers For Salesforce? Join this useful group for Salesforce job & career info and learn all you need to know…
Integrating a Node.js Application with Salesforce
Watch this video where we will explore how to integrate a Node.js web application with Salesforce using Heroku Connect and JSForce. You can work with…
Salesforce CPQ Implementation Best Practices
Follow these Salesforce CPQ implementation best practices across various phases for optimal results: Preparation phase, Implementation phase, Customization, User adoption, and Post Implementation phase. Each…