Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

The variables must be the same as in the Excel template.

Integrating the

...

ExcelTemplateHandler into a HTML-Smartform

The WordTemplateHandler ExcelTemplateHandler can be integrated into a HTML-Smartform as a link, a button, or an image so that the participants can create a template at any time. For this, the following code must be integrated into the smartform:

Code Block
<button type="button" onbuttonclick="generateFileFromTemplate([{handler:'WordTemplateHandlerExcelTemplateHandler',template:'pfad/zumTemplatetemp.docxxlsx',pdf:false,attach:false,open:true,documentPrefix:'Prefix'}])">button>Generate Excel name<template</button>

The "onbuttonclick" attribute defines which functions/parameters the handler should execute. See Parameters sections above.

Document History

The document-history of a process instance can be reviewed via the system variable ${SYS:DOC_HISTORY}. The document history displays which documents of the instance have been attached, edited or deleted. With the WordTemplateHandler the user can save the document history to a Word or PDF document (s. screenshot).

...

...

Important when using HTML-Smartforms

...