-
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 Preferred Connector For Salesforce-Jira Integration in 2023
It is important these days for your teams to collaborate more to get expertise quicker and make business processes more efficient, and for this collaboration,…
Know How to Integrate Smart Quotations with Salesforce
Of the many integrations that can be made by third parties into the salesforce platform, CPQ stands for ‘Configure, Price, Quote’ – in simple terms,…
Wrapper Classes in Salesforce: Simplifying Complex Data Handling
Introduction: As a Salesforce developer, you've likely encountered scenarios where you need to work with complex data structures, such as lists or maps, to process…
Popular Salesforce Videos
Highlights of the Salesforce Winter '22 Release for Nonprofits
The video includes both Winter ‘22 Salesforce Platform updates and Nonprofit Cloud tools. Chapters: 0:00 General Salesforce.com Platform Updates 8:13 Salesforce.com Release for Fundraising and…
Salesforce Deployment Using Workbench | Salesforce Workbench Tutorial
Salesforce Deployment using Workbench. In this video, the following points will be covered - 1. Introduction Get a brief introduction about the Workbench tool. 2.…
The Future of Salesforce Security and Authentication
Learn how to enable the best security in a way that will have your users thanking you. Be the first to learn about the next-gen…