I have two entities let say X and Y, One to one Association with Edit and Browse Screens.
In X I have only one attribute (let say ydate (must be persistent)) and in Y (ydate, attribute 1, attribute 2, attribute 3 etc).
When I open Edit X window I choose (from the Lookup Field) the correspondent Entity Y and I have a row (in Browse X) with (ydate, attribute 1,2,3 - let say I use addGeneratedColumn method).
Is it possible to skip this “Lookup choosing” step and when I save Y entity (OK button in Edit Y) to generate a new X item (row) in Browse X automatically?
How is this code in Cuba 7?
Customer newCustomer = metadata.create(Customer.class); newCustomer.setCustomerType(customerToCopy.getCustomerType()); customersDs.addItem(newCustomer); customersDs.commit();