Views in superclasses

Hello.
I have entities which extend another Base Entity, i want to use datamanager.reload
with the view of the base entity but it says view not found because it wants to use the subclass view.
Is there a way to use superclass view if i want to load only those attributes?
I need this to be a bit more generic

Thank you,

Hi Nenad,

You cannot just pass a string identifier of a superclass view. But DataManager.reload() accepts also a View instance, so you can iteratively search for views available for the entity superclasses, and pass to reload() the first found.

Use MetaClass.getAncestors() to get the list of the entity superclasses, and ViewRepository.findView() to get a view instance for the given entity and view identifier.

Yes, this also works.
Thank you.