Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80871

Retrieve data from an entity within a year on a quarterly basis. (3 months to 3 months)

$
0
0

Hello,

 

I am developing an application which sells Products. And when invoicing there is a place in the form to add Tax amount. The Tax amount gets saved in an entity named "TAXES".

Now my client needs a way to calculate the total taxes within one year but in a quarterly basis. Meaning, from January to March, April to June, July to September and so on.

I have tried it with a Retrieve Microflow on the Entity "Taxes" with Xpath restriction on the date value. Here is where the trouble comes:

When Retrieving I need to do this automatically without user intervention via a form for setting the specific date range. Means I need to hard code it in the retrieve action.

But How to do this? I know if we use a form to capture the user inputs for a date range we can easily apply that to the microflow retrieve. But in my case I need to do this for each year and per three months automatically. I assume that I can hard code the months, but not the year because this has to be done automatically each year. Not just one year. If I hard code the whole date with the year, then it will be useless. So the current Year has to be loaded Automatically and the dates can be fixed.

What is the Xpath code for getting the current year and fixed date range for a retrieval like this?

Please help

Dylan


Viewing all articles
Browse latest Browse all 80871

Trending Articles