add semantic object for navigation

This commit is contained in:
Gregor Wolf
2021-11-12 22:31:58 +01:00
parent 2e13b37096
commit 14024a4837

View File

@@ -10,7 +10,7 @@ using {sap.common} from '@capire/common';
// Books Lists // Books Lists
// //
annotate my.Books with @( annotate my.Books with @(
Common.SemanticKey : [title], Common.SemanticKey : [ID],
UI : { UI : {
Identification : [{Value : title}], Identification : [{Value : title}],
SelectionFields : [ SelectionFields : [
@@ -36,6 +36,7 @@ annotate my.Books with @(
] ]
} }
) { ) {
title @Common.SemanticObject : 'Books';
author @ValueList.entity : 'Authors'; author @ValueList.entity : 'Authors';
}; };
@@ -122,7 +123,7 @@ annotate my.Genres with {
// Authors List // Authors List
// //
annotate my.Authors with @( annotate my.Authors with @(
Common.SemanticKey : [name], Common.SemanticKey : [ID],
UI : { UI : {
Identification : [{Value : name}], Identification : [{Value : name}],
SelectionFields : [name], SelectionFields : [name],
@@ -135,7 +136,9 @@ annotate my.Authors with @(
{Value : placeOfDeath}, {Value : placeOfDeath},
], ],
} }
); ) {
name @Common.SemanticObject : 'Authors';
};
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
// //