Hi,
The Product and Supplier entity has 1:N relationship where I have product lookup on supplier entity and subgrid on product entity. On creation of Supplier record from product subgrid, I would need to set the product record in supplier entity product field.
Could anyone please help with JS code for this business logic.
Thanks,
Leo
Hi Leo,
If you create Supplier record from the sub-grid of product, the product lookup on supplier entity will be populated automatically without any customizations.
The Product and Supplier entity has 1:N relationship, so field mapping will be created automatically between productid(Product) and product lookup field(Supplier).
Field mapping is a mechanism that maps one field to another, allowing data to be copied between corresponding records.
Test: