If you used the default Product and ProductBrand entities, with such relationships, you will only need to complete the following steps:
- Go to Administration > Entity Manager > Modification > Fields and create a Varchar type field called productName (you can choose whatever label you like, the main thing is to use this field name, because it will be used in the formula).
- Go to Administration > Entity Manager > Modification > Fields and create a Varchar type field called brandName (you can choose whatever label you like, the main thing is to use this field name, because it will be used in the formula).
- Go to Administration > Entity Manager > Modification > Layouts and transfer the previously created fields to those layouts where you want the product name and brand name to be displayed.
- Go to Administration > Entity Manager > Modification > Formula and paste the following lines:
Code:productName = model.productName; brandName = record\attribute('Product', model.productId, 'brandName');
Please let me know if you have any problems with this solution or need to change anything.
Leave a comment: