1

I have a visualforce page on a custom object. On save it is redirected to the notes and attachments page. We are now moving to lightning and notes and attachments feature is available. How do I redirect my page to Files in lightning ?

1
  • The feature is not available* Nov 11 '16 at 20:49
0

You can use the navigateToSObject method in your lightning component's controller.

Example from the handleClick js method:

({

handleClick : function (component, event, helper) {
    var navEvt = $A.get("e.force:navigateToSObject");
    navEvt.setParams({
      "recordId": "069580000000IIJAA2",
      "slideDevName": "detail"
    });
    navEvt.fire();
}

})

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.