Add days to date in document template for generate pdf

0
How can I add number of days to a date field in a document template for generating a pdf? I have linked a date attribute. But I need to add 5 days to that DOB at the time of PDF generation. Can anyone give a solution?
asked
1 answers
1

Hi Reshma,

  There is not a way to directly run expressions in the document template itself.  However, there is a way to accomplish what you want.  What you will need to do is to create a new 'pre-processing' entity that has all the fields you need, including a field for DOB + 5 days.  In the microflow that generates the PDF, you will need to create a new preprocessing entity and run calculations to populate all the necessary values.  This allows you to use the standard Mendix microflow addDays function to add the 5 days you need.

 It will introduce an extra step to your microflow, but it will give you complete control and flexibility to build the PDF with all the data you need.

 Hope this helps,

Rob

answered