format
This commit is contained in:
@@ -13,15 +13,26 @@ annotate my.Books with @(
|
|||||||
Common.SemanticKey : [title],
|
Common.SemanticKey : [title],
|
||||||
UI : {
|
UI : {
|
||||||
Identification : [{Value : title}],
|
Identification : [{Value : title}],
|
||||||
SelectionFields: [ ID, author_ID, price, currency_code ],
|
SelectionFields : [
|
||||||
|
ID,
|
||||||
|
author_ID,
|
||||||
|
price,
|
||||||
|
currency_code
|
||||||
|
],
|
||||||
LineItem : [
|
LineItem : [
|
||||||
{Value : ID},
|
{Value : ID},
|
||||||
{Value : title},
|
{Value : title},
|
||||||
{Value: author.name, Label:'{i18n>Author}'},
|
{
|
||||||
|
Value : author.name,
|
||||||
|
Label : '{i18n>Author}'
|
||||||
|
},
|
||||||
{Value : genre.name},
|
{Value : genre.name},
|
||||||
{Value : stock},
|
{Value : stock},
|
||||||
{Value : price},
|
{Value : price},
|
||||||
{Value: currency.symbol, Label:' '},
|
{
|
||||||
|
Value : currency.symbol,
|
||||||
|
Label : ' '
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
@@ -32,17 +43,12 @@ annotate my.Books with @(
|
|||||||
//
|
//
|
||||||
// Books Details
|
// Books Details
|
||||||
//
|
//
|
||||||
annotate my.Books with @(
|
annotate my.Books with @(UI : {HeaderInfo : {
|
||||||
UI: {
|
|
||||||
HeaderInfo: {
|
|
||||||
TypeName : '{i18n>Book}',
|
TypeName : '{i18n>Book}',
|
||||||
TypeNamePlural : '{i18n>Books}',
|
TypeNamePlural : '{i18n>Books}',
|
||||||
Title : {Value : title},
|
Title : {Value : title},
|
||||||
Description : {Value : author.name}
|
Description : {Value : author.name}
|
||||||
},
|
}, });
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -52,8 +58,14 @@ annotate my.Books with @(
|
|||||||
annotate my.Books with {
|
annotate my.Books with {
|
||||||
ID @title : '{i18n>ID}' @UI.HiddenFilter;
|
ID @title : '{i18n>ID}' @UI.HiddenFilter;
|
||||||
title @title : '{i18n>Title}';
|
title @title : '{i18n>Title}';
|
||||||
genre @title:'{i18n>Genre}' @Common: { Text: genre.name, TextArrangement: #TextOnly };
|
genre @title : '{i18n>Genre}' @Common : {
|
||||||
author @title:'{i18n>Author}' @Common: { Text: author.name, TextArrangement: #TextOnly };
|
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_code;
|
||||||
stock @title : '{i18n>Stock}';
|
stock @title : '{i18n>Stock}';
|
||||||
descr @UI.MultiLineText;
|
descr @UI.MultiLineText;
|
||||||
@@ -69,7 +81,10 @@ annotate my.Genres with @(
|
|||||||
SelectionFields : [name],
|
SelectionFields : [name],
|
||||||
LineItem : [
|
LineItem : [
|
||||||
{Value : name},
|
{Value : name},
|
||||||
{Value: parent.name, Label: 'Main Genre'},
|
{
|
||||||
|
Value : parent.name,
|
||||||
|
Label : 'Main Genre'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -78,8 +93,7 @@ annotate my.Genres with @(
|
|||||||
//
|
//
|
||||||
// Genre Details
|
// Genre Details
|
||||||
//
|
//
|
||||||
annotate my.Genres with @(
|
annotate my.Genres with @(UI : {
|
||||||
UI: {
|
|
||||||
Identification : [{Value : name}],
|
Identification : [{Value : name}],
|
||||||
HeaderInfo : {
|
HeaderInfo : {
|
||||||
TypeName : '{i18n>Genre}',
|
TypeName : '{i18n>Genre}',
|
||||||
@@ -87,11 +101,12 @@ annotate my.Genres with @(
|
|||||||
Title : {Value : name},
|
Title : {Value : name},
|
||||||
Description : {Value : ID}
|
Description : {Value : ID}
|
||||||
},
|
},
|
||||||
Facets: [
|
Facets : [{
|
||||||
{$Type: 'UI.ReferenceFacet', Label: '{i18n>SubGenres}', Target: 'children/@UI.LineItem'},
|
$Type : 'UI.ReferenceFacet',
|
||||||
],
|
Label : '{i18n>SubGenres}',
|
||||||
}
|
Target : 'children/@UI.LineItem'
|
||||||
);
|
}, ],
|
||||||
|
});
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
@@ -126,19 +141,18 @@ annotate my.Authors with @(
|
|||||||
//
|
//
|
||||||
// Author Details
|
// Author Details
|
||||||
//
|
//
|
||||||
annotate my.Authors with @(
|
annotate my.Authors with @(UI : {
|
||||||
UI: {
|
|
||||||
HeaderInfo : {
|
HeaderInfo : {
|
||||||
TypeName : '{i18n>Author}',
|
TypeName : '{i18n>Author}',
|
||||||
TypeNamePlural : '{i18n>Authors}',
|
TypeNamePlural : '{i18n>Authors}',
|
||||||
Title : {Value : name},
|
Title : {Value : name},
|
||||||
Description : {Value : dateOfBirth}
|
Description : {Value : dateOfBirth}
|
||||||
},
|
},
|
||||||
Facets: [
|
Facets : [{
|
||||||
{$Type: 'UI.ReferenceFacet', Target: 'books/@UI.LineItem'},
|
$Type : 'UI.ReferenceFacet',
|
||||||
],
|
Target : 'books/@UI.LineItem'
|
||||||
}
|
}, ],
|
||||||
);
|
});
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -162,7 +176,10 @@ annotate common.Languages with @(
|
|||||||
Common.SemanticKey : [code],
|
Common.SemanticKey : [code],
|
||||||
Identification : [{Value : code}],
|
Identification : [{Value : code}],
|
||||||
UI : {
|
UI : {
|
||||||
SelectionFields: [ name, descr ],
|
SelectionFields : [
|
||||||
|
name,
|
||||||
|
descr
|
||||||
|
],
|
||||||
LineItem : [
|
LineItem : [
|
||||||
{Value : code},
|
{Value : code},
|
||||||
{Value : name},
|
{Value : name},
|
||||||
@@ -174,26 +191,24 @@ annotate common.Languages with @(
|
|||||||
//
|
//
|
||||||
// Language Details
|
// Language Details
|
||||||
//
|
//
|
||||||
annotate common.Languages with @(
|
annotate common.Languages with @(UI : {
|
||||||
UI: {
|
|
||||||
HeaderInfo : {
|
HeaderInfo : {
|
||||||
TypeName : '{i18n>Language}',
|
TypeName : '{i18n>Language}',
|
||||||
TypeNamePlural : '{i18n>Languages}',
|
TypeNamePlural : '{i18n>Languages}',
|
||||||
Title : {Value : name},
|
Title : {Value : name},
|
||||||
Description : {Value : descr}
|
Description : {Value : descr}
|
||||||
},
|
},
|
||||||
Facets: [
|
Facets : [{
|
||||||
{$Type: 'UI.ReferenceFacet', Label: '{i18n>Details}', Target: '@UI.FieldGroup#Details'},
|
$Type : 'UI.ReferenceFacet',
|
||||||
],
|
Label : '{i18n>Details}',
|
||||||
FieldGroup#Details: {
|
Target : '@UI.FieldGroup#Details'
|
||||||
Data: [
|
}, ],
|
||||||
|
FieldGroup #Details : {Data : [
|
||||||
{Value : code},
|
{Value : code},
|
||||||
{Value : name},
|
{Value : name},
|
||||||
{Value : descr}
|
{Value : descr}
|
||||||
]
|
]},
|
||||||
},
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
@@ -203,7 +218,10 @@ annotate common.Currencies with @(
|
|||||||
Common.SemanticKey : [code],
|
Common.SemanticKey : [code],
|
||||||
Identification : [{Value : code}],
|
Identification : [{Value : code}],
|
||||||
UI : {
|
UI : {
|
||||||
SelectionFields: [ name, descr ],
|
SelectionFields : [
|
||||||
|
name,
|
||||||
|
descr
|
||||||
|
],
|
||||||
LineItem : [
|
LineItem : [
|
||||||
{Value : descr},
|
{Value : descr},
|
||||||
{Value : symbol},
|
{Value : symbol},
|
||||||
@@ -216,8 +234,7 @@ annotate common.Currencies with @(
|
|||||||
//
|
//
|
||||||
// Currency Details
|
// Currency Details
|
||||||
//
|
//
|
||||||
annotate common.Currencies with @(
|
annotate common.Currencies with @(UI : {
|
||||||
UI: {
|
|
||||||
HeaderInfo : {
|
HeaderInfo : {
|
||||||
TypeName : '{i18n>Currency}',
|
TypeName : '{i18n>Currency}',
|
||||||
TypeNamePlural : '{i18n>Currencies}',
|
TypeNamePlural : '{i18n>Currencies}',
|
||||||
@@ -225,26 +242,29 @@ annotate common.Currencies with @(
|
|||||||
Description : {Value : code}
|
Description : {Value : code}
|
||||||
},
|
},
|
||||||
Facets : [
|
Facets : [
|
||||||
{$Type: 'UI.ReferenceFacet', Label: '{i18n>Details}', Target: '@UI.FieldGroup#Details'},
|
{
|
||||||
{$Type: 'UI.ReferenceFacet', Label: '{i18n>Extended}', Target: '@UI.FieldGroup#Extended'},
|
$Type : 'UI.ReferenceFacet',
|
||||||
|
Label : '{i18n>Details}',
|
||||||
|
Target : '@UI.FieldGroup#Details'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
$Type : 'UI.ReferenceFacet',
|
||||||
|
Label : '{i18n>Extended}',
|
||||||
|
Target : '@UI.FieldGroup#Extended'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
FieldGroup#Details: {
|
FieldGroup #Details : {Data : [
|
||||||
Data: [
|
|
||||||
{Value : name},
|
{Value : name},
|
||||||
{Value : symbol},
|
{Value : symbol},
|
||||||
{Value : code},
|
{Value : code},
|
||||||
{Value : descr}
|
{Value : descr}
|
||||||
]
|
]},
|
||||||
},
|
FieldGroup #Extended : {Data : [
|
||||||
FieldGroup#Extended: {
|
|
||||||
Data: [
|
|
||||||
{Value : numcode},
|
{Value : numcode},
|
||||||
{Value : minor},
|
{Value : minor},
|
||||||
{Value : exponent}
|
{Value : exponent}
|
||||||
]
|
]},
|
||||||
},
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user