Not sure how your domain model functions but yoou could simply overwrite the annuala hours by setting the annualhours like below:
if $Product/Producttype = 'Dryer' then 8000
else
$annualhours/annualhoursint
Hello Maciej Bedlin,
Seems Quote is your entity and ProductType and AnuualHours are attribute for that.
You can add all your logic inside microflow which can be trigger in Submit button or in filed level on change. On leave event. Also, You can create variable in microflow and calculate some value required in your app.
If you want to add special logic for product (Dryer) then in microflow you can check what produst type are selected and add your logic accordingly.
Hi @RAJU
that all makes sort of sense... but for somebody that never used Mendix it still is a bit of a black magic..
could you be more specific? Microflow is the way I was thinking and would I then just replace the Annual hours with that Microflow?
also this will require changes to all the logic that follows and is using the current AnnualHours for follow up calculations? the section from the screenshot is maybe 3%-5% of the whole flow