You need to sign in to do that
Don't have an account?
Ken Koellner @ Engageware
Lightning Web Component Quick Action, will page refresh when action is closed?
I want to write a Lightning Web Component that launches as a Quick Action from a button on a Lightning record page just like the Edit button does where a modal window opens and the record page is grayed out until the model window closed. That component will make some changes to the record.
Question, when the component closes and the record page behind it is reactivated, will it be updated to reflect that latest data?
Question, when the component closes and the record page behind it is reactivated, will it be updated to reflect that latest data?
$A.get('e.force:refreshView').fire();
You cannot use LWC directly in Quick action, I have written a blog post covering this topic.
https://newstechnologystuff.com/2019/12/29/close-quick-action-from-lightning-web-components/ (https://https://newstechnologystuff.com/2019/12/29/close-quick-action-from-lightning-web-components/)
<c:lwcQA recordId="{!v.recordId}" onclose="{!c.closeQA}"/>
c:lwdQA is a reference to the Lightning Web Component
<c:lwcQA recordId="{!v.recordId}" onclose="{!c.closeQA}"/>
The c:lwcQA brings in the LWC.