Exporting portal data to Excel
Using the PerformClick API, CreateDocument API, and IPFExportCollectionGlobal server-side global script, you can give portal users the ability to export a collection of data to MS Excel with one click.
To provide this option, you must add server-side code to the relevant event handler (Click, Alert, etc.) to call the global script, which passes back an IPFDocumentl object. Following the global script call, the document could, for example, be stored in a hidden component. The PerformClick() method could then be called on that component, so the document is downloaded to the user’s computer. One way to implement this is to add code to the applicable server-side script, which places a clickable image in the top header region of a grid and indicates that clicking the image will download the collection.
This is the process for our example: