New Features

Release date : Friday, September 4, 2009
C1 version: Composite C1 1.2 SP2 (1.2.3534.23578)...
Description : IActionExecutor classes (responsible for transforming user actions on tree elements into concrete actions, like starting workflows) can now instruct the console to start downloading a file. Code fragment shown below.

DownloadFileMessageQueueItem downloadFileMsg = new DownloadFileMessageQueueItem(utlToDownload);
ConsoleMessageQueueFacade.Enqueue(downloadFileMsg, consoleServices.CurrentConsoleId);

The specified URL can go to an ASPX page, which builds data dynamically. In those cases, you should ensure that a Download dialog is forced on the client, by executing code like the snippet below:

context.Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(fileName));

New Features