When I am on a list view and click the Create button I need to pre-populate some of the entity fields before it is displayed to the user. This was working in Jmix 1.5, but does not work the same way in Jmix 2.
Can someone provide the way or point to an example?
Which way did you pre-populate the entity, in the controller or using Lifecycle Callbacks?
It would be great if you could send an example of your method.
I also tried the newEntitySupplier handler, also with no success. Both methods were created in Studio by adding a handler on the Create action. In both cases a break point in the method was never hit, so it seems the event was never triggered. The list view is a standard one created by Studio.
By the way, the string “newEntitySupplier” does not appear in the documentation.