-
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
Deleting Apex Classes / Apex Triggers From Production Using Workbench | Salesforce Tutorial
This is a rare scenario that we might face when not using any IDE or Source Control as part of the Salesforce Development. In order…
7 Salesforce Predictions To Be Turned Into Reality In 2019
Salesforce has gone through numerous advancements in the past years (Check the timeline of Salesforce here- Infographic | The Timeline: 20 Years of Salesforce). We…
How to Increase Your Sales Leveraging Digital Transformation? | Salesforce Guide
Now, the shopping experience is not confined to stores. It has been spread across multiple channels including online, mobile, and over the phone. With shoppers…
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…
Salesforce Development and Career Opportunities
Salesforce is the world’s #1 customer relationship management (CRM) platform. Salesforce allows sales reps to see everything about a customer in one place and provide…
What is Audit Trail in Salesforce?
Audit Trails helps to track the recent setup changes that you and other administrators have made to your organization. Watch this video to learn about…