• Veera7
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
i am using below code.
editReord.cmp

<aura:component> 
    <ui:button label="Edit Record" press="{!c.edit}"/> 
</aura:component>

editRecordController.js
edit: function(component, event, helper) 
{
    var editRecordEvent = $A.get("e.force:editRecord");
    editRecordEvent.setParams({ "recordId": component.get("v.contact.Id") }); 
    editRecordEvent.fire(); 
}

when i am try to save controller it shows Invalid literal value [1, 1]: 'edit': Source.
what's error in the above code.
 
what is wrapper class with example can any one explain?
Can anyone help me to get code coverage for below 'if' condition..

if(Date.today().month()==1){ 
}

Any help will be greatly appreciated.