Is there a way in custom implementation of IDocumentRepository to detect, if a details view or an overview is displayed ? I learned “getDocumentByReference(DocumentReference)” is not just called in case of a details view, but also for overview.
Hello,
no, there is no such possibility. Data Services is independent of the UI component and unaware of UI-side features.
You can implement custom operations to distinguish calls from different UI locations if you need different behavior.