Filling custom field on edit screen when entity is selected in entity browser

Hi there.

I have a mixed screen with entity list at left and entity editor at right.
I have a custom readonly field that i need to fill based on selected entity (request to be done in DB in order to show its value) but can not figure out what event to use to set that value at this precise moment.
Thanks for any input !

Hello @IO_libre

Just keep a reference to editor and invoke its custom method when entity is selected in browser.


Hi Daniil.
Thanks for your input. Its conciseness makes me think that i miss obvious elements but i unfortunately can not see which ones.
From what i understood i should start by adding an event listener to selection in the browser, which i believe i would find. However, the remaining operations look mysterious to me. I have been looking for instances of editor or editor classes and places where i could gather them, without luck yet. Could you please expand a bit on this?

Thanks a lot.


Could you share sample project to understand how your custom screens are implemented?

Sure. I’ll be creating a sample project asap.

I created a light sample project. There are two entities and a screen. The screen shows second entity browser and editor. The editor has a custom field, that is inited in the oninit() of the corresponding class.
Goal would be to update that custom field (having a request on first and unrelated entity) when an other instance is selected in browser.

Please get the project here: