Skip to content

A demostration of generating DOCX files with SDocs but not using the standard button and using a lightning web component to initiate the generation.

Notifications You must be signed in to change notification settings

s-docs/docx-lwc-without-buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Generating a DOCX file using SDOCS without using the SDoc button

Demo Video:

Demo Video Link

Key components

createDocumentLWC

This is the component that can be dropped into the lightning record page. This will inturn open a modal window that will do the actual document generation.

sDocsCreateModal

Used by the createDocumentLWC component. This component constructs a URL and iframes the URL into the modal window. For testing purposes the window is setup to be visible but this can be changed to be a hidden window.

The name of the template is hardcoded in this example and need to be modified. Alternatively the template name can be passed in from createDocumentLWC as a parameter similar to how the recordId and objectApiName are passed to the component.

DocGenComplete.page Visualforce page

This is the page S-Docs will redirect to after the document generation is complete. This can be modified to let the user know what to do after generation. You can also enhance this to automatically close the modal window after generation is complete.

About

A demostration of generating DOCX files with SDocs but not using the standard button and using a lightning web component to initiate the generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published