SysDocBatch

SysDocBatch is a model pattern recognized by TurnkeyServer and MDrivenServer.

The problem it solves are document collections.

Normally when you generate a report it will directly download as a odt or ods format file.

If a SysSingleton.oclSingleton.CurrentSysDocBatch is found we now instead add a SysDoc to the SysSingleton.oclSingleton.CurrentSysDocBatch.SysDocs association.

And on the first added SysDoc we will show the SysDocBatchView viewmodel (rooted in SysDocBatch) as a Modal window.

This will enable you to collect a list of possible many documents that you need to print (if your action generates multiple reports multiple SysDoc objects are created).

The SysDocBatchView viewmodel is a good place to possibly offer to convert document to pdf or docx (read more on Using LibreOffice for this task).

You can also make use of the new selfVM operators for Zipping and Downloading:

vData:=selfVM.SysDocBatchZip( self )
selfVM.Download( 'Somefile.zip' ,  '' ,  vData )
SysDocBatch 1717489762380.png
This page was edited 2 days ago on 06/26/2024. What links here