Mix old api screens with new studio version

Hi i’m migrating from old api some screens, and i want to mix some old screen with new screens declarations so i can still calling them from old lookups or edit screens… it’s possible?. or there is a simple way to do that?.

Hello @marc.delphi

Please clarify are you talking about CUBA itself or CUBA Studio tool?

To open new screens use new Screens component:

// In legacy screen

UiControllerUtils.getScreenContext(this)
                .getScreens()
                .create(Screen.class)
                .show();

Regards,
Daniil

Hi, i’m talking about cuba framework 7, i need to call a new screen from an old screen, because i’ve a lot of screens to migrate and i can’t do it in one step. for example, show up a lookup screen from an old editor screen… thats mixed calls aren’t automatic for the framework. Is there any easy solution?.

Okay, so my previous snippet is how you can open new screen from old screen.

You can also use old API like openWindow() since it delegates all invocations to the Screens component.

Regards,
Daniil