Change Editor screen based on logic in create button event (Cuba version - 6.9)

I try to change the edit screen while clicking create action of the table, I tried the following code which is not working.

EditAction editAction1 = new EditAction(cPReadingEntriesTable, WindowManager.OpenType.DIALOG, "popup");
 editAction1.setWindowId("cpreading$CPReadingEntry.edit.popup");
editAction1.setCaption("Edit 1");
 cPReadingEntriesTable.addAction(editAction1);

Hi,

If something doesn’t work, please be more specific about what’s broken.

Regards,
Gleb