Perspective Excel download

Hi , I have created a file resource named 'abc.xlsx' and datatype as ''application/vnd.openxmlformats-officedocument.spreadsheetml.sheet " in Webdev. launching this resource directly it will download excel file.
However ,I need to trigger this download via button click in a perspective view.
How can I achieve this?

If you want that file specifically as stored you can use system.perspective.navigate(url="http://127.0.0.1:8088/system/webdev/Project_Name/abc.xlsx")

it will automatically download it to your downloads folder.

You can use httpGet as well if you have a template and want to rename/edit the contents in some way.

You could also use system.perspective.download() in a button's actionPerformed event script. If you only need the file to be available this way, then you do not need WebDev at all.

2 Likes