Improved samples for new capire
This commit is contained in:
@@ -4,7 +4,7 @@ using CatalogService from '@capire/bookstore';
|
||||
//
|
||||
// Books Object Page
|
||||
//
|
||||
annotate CatalogService.Books with @(UI : {
|
||||
annotate CatalogService.Book with @(UI : {
|
||||
HeaderInfo : {
|
||||
TypeName : '{i18n>Book}',
|
||||
TypeNamePlural : '{i18n>Books}',
|
||||
@@ -24,7 +24,7 @@ annotate CatalogService.Books with @(UI : {
|
||||
FieldGroup #Price : {Data : [
|
||||
{Value : price},
|
||||
{
|
||||
Value : currency.symbol,
|
||||
Value : currencyName,
|
||||
Label : '{i18n>Currency}'
|
||||
},
|
||||
]},
|
||||
@@ -35,11 +35,11 @@ annotate CatalogService.Books with @(UI : {
|
||||
//
|
||||
// Books List Page
|
||||
//
|
||||
annotate CatalogService.Books with @(UI : {
|
||||
annotate CatalogService.Book with @(UI : {
|
||||
SelectionFields : [
|
||||
ID,
|
||||
price,
|
||||
currency_code
|
||||
currencyName
|
||||
],
|
||||
LineItem : [
|
||||
{
|
||||
@@ -50,8 +50,10 @@ annotate CatalogService.Books with @(UI : {
|
||||
Value : author,
|
||||
Label : '{i18n>Author}'
|
||||
},
|
||||
{Value : genre.name},
|
||||
{Value : genre},
|
||||
{Value : price},
|
||||
{Value : currency.symbol},
|
||||
{Value : currencyName},
|
||||
]
|
||||
}, );
|
||||
}) {
|
||||
currencyName @Common.Label : '{i18n>Currency}';
|
||||
};
|
||||
|
||||
@@ -18,7 +18,6 @@ annotate my.Books with @(
|
||||
ID,
|
||||
author_ID,
|
||||
price,
|
||||
currency_code
|
||||
],
|
||||
LineItem : [
|
||||
{ Value: ID, Label: '{i18n>Title}' },
|
||||
@@ -26,7 +25,6 @@ annotate my.Books with @(
|
||||
{ Value: genre.name },
|
||||
{ Value: stock },
|
||||
{ Value: price },
|
||||
{ Value: currency.symbol },
|
||||
]
|
||||
}
|
||||
) {
|
||||
@@ -63,7 +61,7 @@ annotate my.Books with {
|
||||
title @title: '{i18n>Title}';
|
||||
genre @title: '{i18n>Genre}' @Common: { Text: genre.name, TextArrangement: #TextOnly };
|
||||
author @title: '{i18n>Author}' @Common: { Text: author.name, TextArrangement: #TextOnly };
|
||||
price @title: '{i18n>Price}' @Measures.ISOCurrency : currency_code;
|
||||
price @title: '{i18n>Price}' @Measures.ISOCurrency : currency;
|
||||
stock @title: '{i18n>Stock}';
|
||||
descr @title: '{i18n>Description}' @UI.MultiLineText;
|
||||
image @title: '{i18n>Image}';
|
||||
|
||||
Reference in New Issue
Block a user