How can we create Xpath from current date to past 15 days? It should be accept the last year ex: - 27-02-2023 to 12-02-2023 can anyone explain me/

0
$value != empty and $value >= subtractDays($currentObject/Breakdown_StartDate, 15) is it correct expression or not
asked
3 answers
0

In Xpath you will not able to use Function like subtractDays($currentObject/Breakdown_StartDate, 15),

 

so create the variable set the function and then use the variable in xpath.

image.png

answered
0

In validation how can we call a microflow?Screenshot 2024-02-28 114904.png

answered
0

For a validation you don't use XPath, but expressions.

https://docs.mendix.com/refguide/expressions/

 

Above the expression edit area, you can find the variable which can be used in the expression

image.png

 

As a side note:

Validations at page level aren't validations, just user blockers.

These validations will block the user to enter wrong data, but it won't prevent your app for corrupt data.

Always validate your values before storing in a microflow

https://docs.mendix.com/howto7/data-models/setting-up-data-validation/#4-advanced-validation-with-a-custom-save-button

 

And this great assistant will help you creating it: https://docs.mendix.com/refguide/validation-assist/#data-validations

 

 

answered