Basic Customization > User Interface Customization > Gathering the Data for the UI > File Download > Solution
  
Solution
Call the JavaScript function PTC.util.downloadUrl(url) to initiate the file download. See Customization Points for information about the url parameter.
You can call directly from JavaScript, within a <script> section in JSP, or by returning a FormResult from Java with a next action type of FormResultAction.JAVASCRIPT.
Prerequisite Knowledge
To achieve this result, you need to understand:
Basic development of Windchill web pages
JavaScript
Web server configuration and content-disposition
URL security best practices