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

Getting the value of an associated entity's attribute

$
0
0

Hello everyone,

I am new to Mendix and I am trying to develop a very simple project. This is my domain model:

The value of the amount attribute should be unitPrice * Quantity. The thing is that the OrderLine unitPrice should be the Product unitPrice and I can't find a way to get it from the Product and assign that value to the OrderLine unitPrice. I tried to use a microflow with a Change Object action which would multiply the OrderLine quantity by the Product unitPrice, but there's no way I can access the Product unitPrice through the OrderLine ( which is a parameter of the microflow). Any ideas? Thank you in advance.


Viewing all articles
Browse latest Browse all 83468

Trending Articles