-
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
Look ups and Master Detail
We were done with just the two fields Auto Number and Formula Field, In this section we will move on and consider the other fields.…
Formula Fields and Roll-up Summary Fields Usage in Salesforce
Here We are going to discuss “Formula Fields and Roll-Up Summary in Salesforce”. Let's talk beforehand about my blog. Formula field: We use Formula Fields…
Popular Salesforce Videos
Opportunity Manager for Salesforce
Opportunity Manager for Salesforce - The first opportunity manager app that has taken the initiative of converting information and data in the form of user-friendly…
When Salesforce is Down/Offline - Keep on Going With Zoho
Wtahc this video and learn how to keep your organization moving when Salesforce is DOWN or OFFLINE. Do let us know if you have any…
Dreamforce 2019 - An Overview!
Salesforce Dreamforce2019 is scheduled for November 19-22 in San Francisco, California at the Moscone Center. #Dreamforce is one of the largest cloud and SaaS-centric conferences…