add semantic object for navigation
This commit is contained in:
@@ -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,7 +36,8 @@ annotate my.Books with @(
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
author @ValueList.entity : 'Authors';
|
title @Common.SemanticObject : 'Books';
|
||||||
|
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';
|
||||||
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user