Hi, I’m using an entity to define the CRUD for many entities. For example: the entity Person, is used to register clients, sellers, managers, all in the same system. I also changed the editor screen for each one, because some fields are necessary only in some cases. In order to do this, I’m creating different screens for each kind of person. So, of course, the screens have different names. I wanna know how to use a code like this:
@Inject
private ScreenBuilders screenBuilders;
private void editSelectedEntity(Customer entity) {
screenBuilders.editor(Customer.class, this)
.editEntity(entity)
.build()
.show();
}
But specifying the screen that I wanna open in each case. How do I do that?