Skip to content

Commit dca79e0

Browse files
authored
Fix Manage Books UI (#475)
Use author_ID, as this brings proper text representation and also holds Value Helps. Fixes #474
1 parent 4d9f518 commit dca79e0

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

app/admin/fiori-service.cds

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ annotate AdminService.Books with @(UI : {
4545
}
4646
],
4747
FieldGroup #General : {Data : [
48-
{Value : title},
49-
{Value : author_ID},
5048
{Value : genre_ID},
5149
{Value : descr},
5250
]},

app/browse/fiori-service.cds

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ annotate CatalogService.Books with @(UI : {
1313
TypeName : '{i18n>Book}',
1414
TypeNamePlural : '{i18n>Books}',
1515
Title : {Value : title},
16-
Description : {Value : author.name}
16+
Description : {Value : author_ID}
1717
},
1818
Identification : [
1919
{Value : title},

app/common.cds

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ annotate my.Books with
2323
LineItem : [
2424
{Value : ID},
2525
{Value : title},
26-
{
27-
Value : author.name,
28-
Label : '{i18n>Author}'
29-
},
26+
{Value : author_ID},
3027
{Value : genre.name},
3128
{Value : stock},
3229
{Value : price},
@@ -57,7 +54,7 @@ annotate my.Books with
5754
TypeNamePlural : '{i18n>Books}',
5855
TypeImageUrl : 'sap-icon://course-book',
5956
Title : {Value : title},
60-
Description : {Value : author.name}
57+
Description : {Value : author_ID}
6158
}, });
6259

6360

0 commit comments

Comments
 (0)