Hello i have a problem about many to many relationship
I have 3 tables
1. MasterCodeType -> PK (Name)
2. ProductCodeType -> FK (MasterCodeType .Name), FK (InventTable.ItemId)
3. InventTable -> PK (ItemId)
ProductCodeType is mapping table for MasterCodeType and InventTable.
I'm adding button to Released Product action pane to go ProductCodeType form and user can add many of CodeType based on MasterCodeType for 1 Item/Product.
The AX standard behavior, if we open ProductCodeType form from Released Product, it will automatically link the selected ItemId so user only created CodeType for 1 Item/Product based on selected Product ItemId.
The problem is i add new field in PurchLine called CodeType, it's a dropdown based on CodeTypes that exist in PurchLine ItemId and if the user want to create CodeType on PurchLine ItemId by clicking view details on PurchLine CodeType to go ProductCodeType Form, the AX behavior becomes inconsistent. The ProductCodeType Form not linked with PurchLine ItemId, Please how to solve it? Thanks