Hello, I have a form with a button whenever I press the submit I need it to save the form as pdf in the database (excluding any buttons or side menu, etc..)
I looked at the forge components but all I found is it download the form as pdf not saving it to my db
Thanks
Hi @Mohamed Zakaria ,
1. here is the logic you should use to save data in Entity :
2. you can write the logic to Download in PDF.
set the margin as per your requirement
Output:
Hope this will help you !!
Regards
Sourabh Sharma
Hello,
The best solution/component is the Ultimate PDF: https://www.outsystems.com/forge/component-overview/5641/ultimate-pdf
With this you can do what you want :) There is a server action to generate the PDF and after you can save in the Database.
Hi Mohemad
The same case with me is and here is the steps i was able to do so.
1. First create a new screen which will only contain the form not the side menu and button. (include only the content that you want to save as pdf)
2. then make a unique url and then using the forge component. (ultimate pdf) you can simply give the url of that screen and then you will be able to get the binary data of that pdf screen and you can store it in the database.
thank you. let me know if it solves the problem.