My application has a Member Entity and a Member browser and edit screens. Each member is related to a system user. When the administrator login to the app, he has access to Member’s browser screen and can add or edit members.
I created a custom edit screen for members, and when a regular member login, he will have access to this custom edit screen, but not the member’s browser. So the idea is to open the custom edit screen with the member related to the current user.
My question is, how can I open the custom screen with the current user/member record?
Thank you, I ran your example and it worked perfectly.
I tried to do the same in my application but I think I’m losing some detail. I’m getting:
java.lang.ClassCastException: com.inoutech.yfams.web.member.CurrentMemberOpener cannot be cast to com.haulmont.cuba.gui.components.Window
at com.haulmont.cuba.gui.WindowManager.createWindow(WindowManager.java:674)