-
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
What is Salesforce Scheduler in 2024?
In today's fast-paced business landscape, managing schedules and appointments can be a labyrinth of complexity, impacting customer experience and operational efficiency. Salesforce Scheduler is the solution for…
An Ultimate Guide to Salesforce Workflow Automation
Workflow automation is the use of software or other technologies to facilitate and streamline complex business processes. Typically, these processes involve a large number of…
How to do Salesforce Customization Right?
When it comes to serving potential customers while balancing the sales of the business, Salesforce has unlocked countless opportunities for us to get involved. It…
Popular Salesforce Videos
Salesforce Sales Cloud Basics
This short video shows how easy to create & manage leads and to convert it to opportunity, contacts & accounts using Salesforce Sales Cloud. Please…
How Can Salesforce Help To Transform Business Into A Sales Powerhouse?
This video will help you understand what is Salesforce and how it can help transform businesses. Salesforce CRM will help to transform your organization to…
How relationship works in Salesforce?
In this video, following things have been explained: How to create relationships in Salesforce? What is the need of relationship between two objects in Salesforce?…