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 !
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?
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.
You’re using entity combined screen (or master-detail screen) to work with entities. In this case when you select any entity in browser part, editor shows selected entity properties. To set some custom value to custom field you can subscribe for table selection and do some work: