I am trying to automatically download the zip file generated by the process model involving the "Add documents to Zip plugin". The process model is called from an user interface.
In the process model I mapped the output of the plugin to a process variable called "newDocumentCreated".In the interface I do the following:
a!buttonWidget( label: "Scarica Archivio", icon: "download", saveInto: a!startProcess( processModel: cons!EDB_DOWNLOAD_ZIP, processParameters: { documents: ri!record.allegati, documentPaths: rule!EDB_GetDocumentPath( ri!record.allegati ), zipName: tostring( ri!record.id ) & "_Allegati.zip", zipFolder: cons!EDB_UPLOADED_FOLDER }, onSuccess: a!save( local!pinfo, fv!processInfo.pv.newDocumentCreated & "ok" ) ), style: "NORMAL", showWhen: len( local!selectedIndices ) > 0 ),
The problem is that I receive an empty document on the onSuccess callback, without Id or any other property. Despite this issue, the zip document is still created correctly.I just cannot use it at the moment right after its creation in order to download it by the interface.
This is the text output of the document retrieved in "onSuccess" by fv!processInfo.pv.newDocumentCreated ---------> [Document:]
Am I missing something?
Discussion posts and replies are publicly visible
Can you post a screenshot of your ZIP-generating process model?
Nevermind, the issue is solved. Lack of sleep yesterday made me forget the activity chaining through the nodes. Thank you anyway!
Thanks for confirming- that was the first thing I was going to check for ;-)
It would be good for me if you share what all steps is required to enable download option in zip format.I have bit similar requirement where i need to download all files in zip folder but i am not aware which service n plugin would require for this or without that also if possible .
It would be help for me if you can share some knowladge on this.
sauravk - Add Documents to Zip plug in required to create the zip file.
Below is the node configuration once you install the plugin.
Base Document - NothingCreate New Document =true()New Document Name ="PhotosZIP"&pv!idprestation&".zip"New Document Desc - NothingSave in Folder =cons!FTTHREPPHOTOExisting Document - NothingDocuments to Add ={pv!docphoto}Documents Paths =document(pv!docphoto,"name")&"."&document(pv!docphoto,"extension")