Open view in dialog mode for editing

Hello, I need to open a detail view in a dialog so that the user can complete information that only he can provide. At the moment I have identified that for this to be executed from the main menu it requires a Bean to execute the view, but it is not clear to me the process.

Could you give me a clue about this? I have tried to follow this and this to open the detail view, but I can’t get it to work as the user expects it to be a dialog.

In summary, how to open the detail view in a dialog from the beans that is invoked from the main menu.

Saludos,

Nelson F.