I’m trying to implement inherited entities and would like to reuse the editor/browser screens as much as possible for the inherited entities. I’m not sure how to do this.
Basically, I have a number of lists with different types of assets: hardware components, software tools, keys etc. They all have some fields and functional behavior in common, hence the inheritance strategy.
For the base class, containing the shared fields and functionality, I have created a browser and editor screen. For the extended entities (each holding entity-specific fields and implement specific functionality) I would like to reuse the browser and editor.
For the browser this was possible by adding a collection datasource and override the datasource property on the table.
For the editor however it doesn’t work as adding the entity-specific datasource and setting the datasource on the corresponding field components (I’m not using a fieldgroup) results in an editor that shows up empty and after editing a field always clears the input.
It seems that the fields in the editor remain linked to the base entity rather than the extended entity.
I’m probably doing this the wrong way. What direction am I supposed to solve this?
Thanks for helping me out here.