Error ReportEmailTemplate.browse is not defined

A table has been created that allows you to select an email template to be assigned to a particular option. The problem occurs when you want to select. Error “Screen ‘emailtemplates$ReportEmailTemplate.browse’ is not defined”.

Caused by: com.haulmont.cuba.gui.NoSuchScreenException: Screen 'emailtemplates$ReportEmailTemplate.browse' is not defined
	at com.haulmont.cuba.gui.config.WindowConfig.getWindowInfo(WindowConfig.java:464) ~[cuba-gui-7.0.10.jar:7.0.10]
	at com.haulmont.cuba.gui.components.PickerField$LookupAction.actionPerform(PickerField.java:388) ~[cuba-gui-7.0.10.jar:7.0.10]
	at com.haulmont.cuba.web.gui.components.WebPickerField.lambda$setPickerButtonAction$0(WebPickerField.java:291) ~[cuba-web-7.0.10.jar:7.0.10]
	at com.haulmont.cuba.web.widgets.CubaButton.fireClick(CubaButton.java:76) ~[cuba-web-widgets-7.0.10.jar:na]
	at com.vaadin.ui.Button$1.click(Button.java:57) ~[vaadin-server-8.6.4-17-cuba.jar:8.6.4-17-cuba]
	... 43 common frames omitted

Any way to fix it quickly?

Regards,

Nelson F.

Hi @nelsonflorez,

Is it a generic picker field with default options?

Regards,
Evgeny

Hi @evgeny.zaharchenko, yeah that’s right

image

Any way to fix it quickly?

Hi @nelsonflorez ,

We will create defaukt browser screens in next addon versions.
To have a quick fix you can add the following screens in your screens.xml file

<screen id="emailtemplates$ReportEmailTemplate"
            template="com/haulmont/addon/emailtemplates/web/emailtemplate/browse/email-template-browse.xml"/>
<screen id="emailtemplates$JsonEmailTemplate"
            template="com/haulmont/addon/emailtemplates/web/emailtemplate/browse/email-template-browse.xml"/>

Regards,
Evgeny