Create a pdf

0
Hi everyone,  I have created a list view and a data grid on a page. And I want to know, if it is possible to generate a pdf file with mindex to show the list contents.( for example with a created button)  And how?   THanks for your help,    Elom
asked
2 answers
4

Hi Abbey,

Please have a look at the documentation: 

https://docs.mendix.com/refguide/generate-document

 

In short:

- Create a Microflow that creates a New Entity that specializes from System.FileDocument

- Create a Document Template that contains the content you have already available

- Make sure the content is passed to the Microflow from your grid(s).

- Add the Generate Document Action to the Microflow

- Setup the input parameters in the Generate Document Action (don't forget to add the template as well).

- Add the Download file action as action to your Microflow and pass the New Entity as Input.

 

Good luck!

 

answered
2

Hi Abbey,

You can add an export excel button to your datagrid but unfortunately listviews do not support this functionality. You can check out the excel exporter module and create a template that you can export to excel from a microflow.

Here is a link to the module:

https://appstore.home.mendix.com/link/app/726/Mendix/Excel-exporter

 

Here is a how to guide for this module:

https://docs.mendix.com/howto/integration/using-the-excel-exporter

 

and some documentation on the export to excel button:

https://docs.mendix.com/refguide/export-to-excel-button

 

Hope this helps!

 

Edit: I just realized you said PDF not excel. Sorry about that! Please refer to Aswin's answer. I will leave this answer here in case you want to know about excels. 

answered