-
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
Whitelist IP Address in Salesforce
How to Whitelist IP Address in Salesforce! Whitelisting basically ensures that the firewall will not block your browsers from loading the page. Don’t forget to…
Guided Selling and Complex Billing in Manufacturing with Salesforce
For a manufacturing company, preparing professional and accurate quotes is just as important as other operations. It may sound easy, but as the number of…
What are Salesforce Flows? | All You Need to Know
Salesforce Flows Salesforce Flow, formerly known as Visual Workflow, is a cloud-based automation tool provided by Salesforce. It allows users to create and automate business…
Popular Salesforce Videos
Know Why Salesforce Is Secure For Your Business Data
Salesforce.com uses a variety of methods as mentioned in the video - to ensure that your business data is safe, secure, and available only to…
Dreamforce To You 2020 - All Set To Happen
The world has changed, and so has Dreamforce. Instead of everyone coming to Dreamforce, Dreamforce is coming to you — to your kitchen, to your…
Salesforce Integration Tutorial | Integrate Salesforce with Apps
This "?????????? ??????????? ????????" video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…