ExportMap Activity and download to machine
Hi there,
Has anyone ever used the ExportMap activity in a workflow to create a map? I'm hoping to create a map and prompt the user to save it to their machine (or better yet, initiate the download via the workflow). Right now my workflow just displays the url as a link and asks the user to open and save it.
Has anyone created a workflow that downloads a result of the workflow (from a Uri) to the users machine?
Thanks,
Warren
-
The standard way of doing this would be to use the Display Hyperlink activity to show the URL provided by the Result Url value of the Export Map activity as a clickable link. Alternatively you could use Run External Command , set Command Name to "NavigateToUri" or "OpenWebPage", and Command Parameter to that same URL.
I haven't used those external commands recently, but I seem to remember one of them working in the SL viewer and the other in the HTML viewer. In both cases, the user's browser may block this download as an unwanted popup.
None of these methods will give you control over how the browser handles the exported map image. Depending on the image format and the browser's capabilities it may open it in a new browser tab, or show a Save As dialog.
0 -
Oh the joys of security and sandboxing ;-)
Regards
Ralph
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare