How to use user defined mathematical formulas

0
Hi all,   Mendix is pretty new to me and I have to develop a price planning app. The problem is that the calculation of the retail price is different per countries: the elements are standard (VAT, dealer margin, local tax, luxury tax, etc.) but the exact formula is slightly different. The idea is that the user can define and maintain these formulas (about 20-25 different one) through an overview page and we have just one microflow which uses always the relevant one.   The formulas are stored currently as strings, but I don't know how to use them here:   Maybe, my whole logic is wrong and I have to use a different way. Any suggestion would help. Thanks, Istvan  
asked
1 answers
1

Hello Istvan, 

 

Have you looked in the marketplace there are certain kind of modules that you can use to do calculation based on a string, further you can use modules to create placeholders token for example for your DPET variable and for the margin.

 

Math module:

https://marketplace.mendix.com/link/component/207815

 

Example of tokens can be found in the standard email connector module:

https://docs.mendix.com/appstore/modules/email-connector/

 

https://marketplace.mendix.com/link/component/106670?_gl=1*1iokev1*_gcl_au*NTg2Nzg2MjMyLjE3MjI1ODQ4Mzc.

 

Hope this helps,

 

Good luck!

answered