You need to sign in to do that
Don't have an account?
Ankit Dable
Can someone suggest me what is requier in this?
Thank you!!
Parsing error: Unexpected token in below code of Lightining controller
({ doInit : function(component, event, helper) { component.set(v.columns[ {label: 'Department ID', fieldName: 'DepartmentID', type: 'Auto Number'}, {label: 'Department Name', fieldName: 'Name', type: 'text'}, {label: 'Department Manager', fieldName: 'DepartmentManager', type: 'text'}, {label: 'Employee Count', fieldName: 'NoofEmployee', type: 'number'} ]); var action= component.get("c.getRecord"); action.setCallback(this, funtion(response){ var state=response.getState(); if(state==="SUCCESS"){ component.set("v.dept",response.getReturnValue()); } else{ console.log("Failed with state: " + state); } }); $A.enqueueAction(action); } })I am getting Parsing error: Unexpected token { at line 10.
Can someone suggest me what is requier in this?
Thank you!!
Raj Vakati
Try this
Raj Vakati
Does it worked?