Calculate Start Month

0
Hi, I’m new at Mendix and try to do my first steps. :-) I would like to do some calculation. When you order a ticket in on 8th  May, the input mask in TicketOrder_NewEdit should automaticly set the start date to 1st July. So it should be always current month + 2 months for the start date. E.g. Order on 21st January → Start Date 1st. March. How can I solve this?    
asked
2 answers
0

Tjark,

You can create a microflow that takes the ticket date value and uses date manipulation to get the start date.  Date functions can be found here:  https://docs.mendix.com/refguide7/add-date-function-calls and here https://docs.mendix.com/refguide7/trim-to-date#1-introduction

Once you create the microflow, call it as on onChange event handler on the ticket date field.

Hope that helps,

Mike

answered
0

If OrderDate is always the current date you could create a variable StartDate and fill it with addMonths([%BeginOfCurrentMonth%], 2) 

answered