File download with url from database

I using an URL with a created parameter to filter the item needed. (custom query)
I would like to download a file with a button placed on a form which has a filename stored in the database
How to achieve this?

Hello, and happy new year.
Just use the ‘download’ component from Wappler

Hello T11,
Thank you for your fast reply.
I use the download component with a button (dynamic click event)
on a laptop when clicking the button it is pointing to 123.pdf but say cannot load document
on phone it is pointing to 123.pdf.html (which not exists).

Hello,
Using a static url on the download component the file is opening.
when downloading the url from the database changes the / into _ ( assets/document/123.pdf) into assets_documents_123.pdf.html (why the html?) while the data is correct