-
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
Inserting Records in Account or (any other sObject) Through Postman in Salesforce
We are using postman from API testing and request management to hit API by get or post and received data in the form of JSON…
6 Leading Salesforce Trends for 2022 and Beyond
Salesforce unifies the modalities of numerous departments—marketing, services, sales, and customer management—and accelerates harmonious coordination between diverse company lines in the new hybrid-work paradigm. It…
How Salesforce Uses Process Street on Effective Client Boarding
Client onboarding means introducing clients to your company or business. These days, consumers expect from businesses more than just a product or service. They’re in…
Popular Salesforce Videos
Salesforce Apex Class | Salesforce Development | SFDC Development
This video covers how to create an Apex Class in Salesforce and Execute the Apex Class. Do let us know in the comment section if…
Apex Classes and Apex Triggers in Salesforce
In this video, Salesforce developer Artem will demonstrate real-world applications of both Apex classes and triggers with practical business scenarios. Apex classes and Apex triggers…
Salesforce Diagram | Salesforce Diagramming Framework
Diagrams help drive key project decisions, align delivery teams, and help everyone understand where you’re going and what’s been done. Consistent, easy-to-understand diagrams are a…