Problem calling CreateAction.actionPerform in postInit method of an editor

Hello,

after the user opens an Entity in an editor, i want to immediatly call the createAction of a table within that editor.
My plan was to call .actionPerfom within the postInit of the editor. if i do that, nothing happens. after i close the editor window with “cancel” button, the editor of the entity i called the .actionPerform for shows up. So it’s quite strange.

if i call the .actionPerform using a Button in the editor, it works just fine.

Is it not possible to call the .actionPerform of a CreateAction within the postInit Method? If so, what’s the correct way to automatically open the editor of that nested entity / call this action?

Is there another method i can override, which is invoked after opening an editor, to call the .actionPerform method ?

Thanks and best regards
Daniel

Hello,

i got it to work overriding the AbstractWindow.ready() method and calling the .actionPerform there.

seems like postInit is to early for this operation. maybe someone with more knowledge can explain the exact reason behind this.

Thanks and best regards
Daniel