Internal Console API

download

Other API in Package

Console

Console System

Console Webservice

download tag

Provides functionality for downloading an object from the server. If value is used, the tag will be a button.

Tag Attributes
Attribute Notes
test
id
style
class
title
action
value
workflow
validate

Sample:

In the page:

<c:download action="getList">Click to download</c:download>


<c:download action="getPdf?name=${docname}">download pdf</c:download>


In workflow:

var list = packet.getDataList("mylist");
var response=c.createDownloadResponse();
response.setFileContent(list.toFile("result.csv","csv"));
return response;


or PDF

var name=request.getValue("name");
var pdf = packet.getDocument(name).toPdf(name+".pdf",false);
var response=c.createDownloadResponse();
response.setFileContent(pdf);
return response;

Copyright © 2006 - 2025, ContractPal, Inc. All rights reserved. API Date: May 13, 2025 07:00 AM