I wish to add a download button into my own page-template.
I know the way with entity list; that's fine and works.
But there are some special requirements in list, which only can be done with an special page template.
And now such a download button with its functionality is needed.
Hi @AndKanPA ,
One of the way I used in my project is once you add your entity form in the web page.
In portal studio:
1. Click on the source code Editor part at the bottom
2. Add a column from components if you like
3. Add the button control html tag like below
<div class="col-md-12 columnBlockLayout" style="display: flex; flex-direction: column; width: 15%;"><button onclick="document.location='~/Admin'" style="background-color: #008CBA; font-size: 16px; color: black;">Download</button></div>
This will add download button in the bottom of the page. If you prefer you can use the same code in your template and make it as default.
Hope it helps.
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hello @OliverRodrigues ,
nice way to create a print view (which I solve with css media type print).
Default way with Grid Configuration add a “Download” action , I cant use in with my web template 😞
Hello @ragavanrajan ,
that's a way to add a simple button without functionality, because document.location='~/Admin returns only "Page not found", because I dont have an "Admin" page.
That's clear so far.
I need an information how to start the download. A button WITH download function.
Just like the grid-action-download-button, but inserted in my own template.