showOptionDialog with user input fields

Hi,

when using showOptionDialog method is there a possibility to have user input fields in its window body?

For example:

showOptionDialog(
        getMessage("Title"),
        getMessage("2 user input fields?"), // is it possible to have user input fields?
        MessageType.CONFIRMATION,
        new Action[]{
                new DialogAction(DialogAction.Type.OK, Action.Status.PRIMARY){
                    public void actionPerform(Component component){
                        someMethod();
                    }
                },
                new DialogAction(DialogAction.Type.CANCEL, Action.Status.NORMAL)
        }
);

If not, what will be a better approach to achieve this?

Thanks in advance!
Regards!

Hi,

Unfortunately, there is no such option dialog with input fields. You can easily create a custom window and open it with OpenType.DIALOG. See examples here: Returning Values from an Invoked Screen - CUBA Platform. Developer’s Manual

@artamonov, Thank you!