There have been many situations where Developers were asked to generate some kind of file dynamically(Formatted Excel, PDF from Data Function, Images generated from scripts, Word Reports etc.). Mostly it is easy to do so, but problem arises when they ask an option to download same via webplayer.
Spotfire should have a Download container, that can be bound to action controls which -
Receives input of type file, generated as Data Function Output (A document property)
Starts downloading that object bound with action control(similar to PDF extract right now)
From security perspective, file extension can be whitelisted/blacklisted. For example,
.jpg , .jpeg, .png, .bmp, .gif,
.mp4 , .mp3 , .wav
.xls , .xlsx, .xlsm, .doc , .docx , .ppt, .pptx
.txt, .csv
.exe , .py, .cmd , .sh , .bat , .vbs
Hi Miguel,
I am talking about the dynamically generated item only.
Something like this :
Add a line of code to trigger download at client browser
Application.DownloadFromWebplayer(fileObject)
or
A script output of type Download, when changed- it will trigger a download at webplayer end.
Hi Vivek,
Please, could you clarify a little bit?
You are not talking about downloading containers but about a download menu option, right?
And, is it about being able to download an existing library item or a dynamically generated one from the analysis or both?
Thanks