How to show Tire objects associated to a Vehicle object, then select some of the tires and associate with different vehicle?

0
Hello,   In my domain model, I have 2 objects: Tire and Vehicle. Each vehicle has multiple tires. Also, tires have an attribute named "status" which is an enumeration: either "in depot", "active", or "scrapped". In a page, I want the user to select a Vehicle from dropdown (its Plate attribute will be shown). After that, I will show Tire objects associated with that Vehicle. User will be able to select some of them. Then, I want to have 3 radio buttons:   - Scrap it - Put into another vehicle - Put in depot   If user selects "Put into another vehicle", then, I will show a dropdown to select another vehicle. Then user will save the update.   I tried to do this by using a Data Grid widget but I cannot put a radio button inside it.   How can I achieve this?   Thank you in advance.   (names may be different.
asked
1 answers
1

I'm not sure want you want to achieve, and yes you cannot put a radio button inside a datagrid. But if you pick the datagrid2, then you can add a radio button in custom content column.

https://docs.mendix.com/appstore/modules/data-grid-2/#custom-content

Hope this helps

answered