openLookup with Entity parameter and no explicit lookup screen does not work

Hi,

there is a bug when using openLookup with the following method signature:


public AbstractLookup openLookup(Class<? extends Entity> entityClass, Handler handler, OpenType openType)

When giving it an entity that only has a browse screen but no explicit “.lookup” screen, it would not open the lookup window saying: “No such screen - Screen ‘cpolwl$Customer.lookup’ is not defined”.

Attached you’ll find an example app. The openLookup call is in the mainWindow.

Bye
Mario

cuba-problem-open-lookup-without-lookup.zip (35.8K)

Hi,

Thank you for reporting the problem. We have created a YouTrack issue: https://youtrack.cuba-platform.com/issue/PL-9819 Will try to include the fix to the 6.6.5 release.