***enter image description here***

How to detect Delete button press in the file opened in preview lightning community using e.lightning:openFiles event and perform some controller action.

enter image description here

  • 1
    What controller action you want to perfrom? Cant that be done in Trigger? – Pranay Jaiswal Sep 6 '18 at 18:26
  • I need the Id of the document that is deleted and store it in an attribute. – KSR Sep 6 '18 at 18:36
  • 2
    I think you can write onDelete trigger on ContentDocumentLink and store that documentId anywhere. – Pranay Jaiswal Sep 6 '18 at 18:37
  • Do we have any events in lightning that can detect.? – KSR Sep 6 '18 at 18:39
  • There isnt seem to be an event for this, so I think thats not possible . WOuld love to be wrong though. developer.salesforce.com/docs/component-library/bundle/… – Pranay Jaiswal Sep 6 '18 at 18:41

Your Answer

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

Browse other questions tagged or ask your own question.