Generate a pdf for database entry and download it locally

Hi, I am creating a trip booking application in mendix.I am providing a list of bookings to the customer . I want to add a functionality in this list where by on click of a button the customer will get the pdf downloaded in his local machine for that particular booking record. How can i achieve this?
1 answers

You can do this by creating a document template which will be used in a microflow as described here: